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, $chmodresult";
I'm trying to move the file at $imageloc to a folder called 'trash' (i
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
2 matches
Mail list logo