Re: I thought I beat the safe mode ... now this ...
| From: | zerosumzero@yahoo.com | Date: | Sun, 08 Jul 1979 18:43:20 +0000 |
| Subject: | Re: I thought I beat the safe mode ... now this ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56792@lists.php.net to get a copy of this message | ||
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
problem?
$chmodresult returns 1 or true, but the file is still protected when I go
look at it...
Susan