Re: [PHP] I thought I beat the safe mode ... now this ...

2001-07-08 Thread [EMAIL PROTECTED]
Can anyone see anything wrong with this code? $chmodresult = chmod ($imageloc, 0777); $trashpath = trash/$filenamec; $trashed = rename ($trashpath, $imageloc); echo moving $imageloc to $trashpath, $trashed, $chmodresultbr; I'm trying to move the file at $imageloc to a folder called 'trash' (in

[PHP] I thought I beat the safe mode ... now this ...

2001-07-07 Thread [EMAIL PROTECTED]
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