unlink() and safe mode....

From: Date: Tue, 14 Aug 2001 14:45:28 +0000
Subject: unlink() and safe mode....
Groups: php.general 
Request: Send a blank email to php-general+get-62644@lists.php.net to get a copy of this message
Hello I'm trying to do the following: allow a user to upload a file to a directory, and also allow them to delete that very file again. The uploading part works using http post, the file is saved with as UID the UID of www/www (on this particular ISP). Now, when I try to delete the filem I get a warning like this: Warning: SAFE MODE Restriction in effect. The script whose uid is 97613 is not allowed to access ../images/2/file.jpg owned by uid 1001 in <script> on line 5 What am I to do to make this work? I've considered using chown, but that's restricted to the SU... Anyone got a clue? Thanks, Jan

« previous php.general (#62644) next »