note 41517 rejected from function.unlink by betz

From: Date: Tue, 13 Apr 2004 12:43:30 +0000
Subject: note 41517 rejected from function.unlink by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68066@lists.php.net to get a copy of this message
Note Submitter: der.polsterische@gmx.at ---- hey, this is my kill.php: <? if (unlink("$path/$datei.$endung")) { $date = date("d.m.Y, H:i:s"); $file = ("log.htm"); $datei = fopen($file , "a+"); fwrite( $datei, "Gelöscht am $date: $datei.$endung <br>" ); fclose( $datei ); echo "Die Datei \"$path/$datei.$endung\" wurde erfolgreich vom Server gelöscht"; } else { echo "Die Datei \"$datei.$endung\" konnte nicht gelöscht werden, da sie entweder <br> nicht existiert oder keine Zugriffsrechte (CHMOD 777) vorhanden sind"; } ?> but when i try to run this script over a <FORM action="kill.php"> from "deletefile.php" comes this error: Warning: unlink() [function.unlink]: SAFE MODE Restriction in effect. The script whose uid is 659 is not allowed to access / owned by uid 0 in /srv/www/htdocs/web14/html/hot/upload/files/killer.php on line 2 help?

« previous php.notes (#68066) next »