I thought I beat the safe mode ... now this ...

From: Date: Sun, 08 Jul 2001 02:52:40 +0000
Subject: I thought I beat the safe mode ... now this ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56713@lists.php.net to get a copy of this message
Okay I've been trying to do file uploads on a server that is in safe mode (not my choice) I was able to get around the safe mode by doing: $path = "images/$filetitle$user$filesuff"; if (is_uploaded_file ($form_data)) { move_uploaded_file (addslashes($form_data), $path); } And it worked, so now people can upload files ... but I also want them to be able to delete files so I tried: unlink($path); Nope, can't do that in safe mode... Okay maybe I can just move the files into a trash folder, then empty it myself every week or so: $chmoderror = chmod ($imageloc, 0777); $filename = strstr ($imageloc, '/'); $trashpath = "trash$filenamec"; Nooooo I get an error: Unable to access trash/200107072306491.gif in /usr/local/plesk/apache/hosts/futurebird.com/httpdocs/mapbuild3/deletemap.ph p3 on line 97 Is this safe mode? or am I doing the file move all wrong? Susan

« previous php.general (#56713) next »