Hallo
Ich Versuche Anhänge an einer E-Mail mit PhP zu versenden.
Ich bekomme immer die Fehlermeldung:
Warning: SAFE MODE Restriction in effect. The script whose uid is 1000 is not allowed to access /tmp/phpxTkW8V owned by uid 0 in /customer/www/natko/natkotest/php/email.php on line 41
Warning: fopen("/tmp/phpxTkW8V","r") - Success in /customer/www/natko/natkotest/php/email.php on line 41
Warning: Supplied argument is not a valid File-Handle resource in /customer/www/natko/natkotest/php/email.php on line 41
Die eMail mit dem Betreff dddd wurde an edv@natko.de gesendet.
Die Zeile 41:
$datei_content = fread(fopen($datei,"r"),filesize($datei));
Ich empfange auch eine Mail. Soweit sogut, aber der Anhang ist o Byte groß.
Kann mir jemand erklären was die Fehlermeldung bedeutet und warum der Anhang 0 Byte groß ist?
Gruß Marc