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<br>";
I'm trying to move the file at $imageloc to a folder called 'trash' (in the
same folder as $imageloc. The pasths are OK. Could this be a safe mode
$chmodresult returns 1 or true, but the file is still protected when I go
look at it...
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]