Posted by peter on 10/21/06 15:34
"peter" <submit@flexiwebhost.com> wrote in message
news:ehde9o$lfs$1@aioe.org...
>
>> OK ive played around with it and have found the following
>>
>> THIS DOESNT WORK
>>
>> $targetdir = "pupiltester/";
>> $tempdir= "temp/";
>>
>> $target_path = $targetdir."Arm.jpg";
>> $temp_path = $tempdir."Arm.jpg";
>> rename($temp_path, $target_path);
>>
>>
>>
>> BUT THIS DOES
>>
>> $target_path = "pupiltester/Arm.jpg";
>> $temp_path = "temp/Arm.jpg";
>> rename($temp_path, $target_path);
>>
>> I cant see it am I being completely thick and missing something obvious
>>
>
> that is mighty strange because essentially they are the same thing. Have
> you tried using full path's instead of relative paths?
also just to further on my previous post.
Is there a reason you are storing the paths in the session? just seems a
strange thing to do. Are they changing depending on the user.
Regarding not receiving an error ensure you have the following at the top of
your script:-
error_reporting(E_ALL);
It is possible that the errors are being supressed for some reason (possibly
the default error reporting level in the php.ini file set too low)
Navigation:
[Reply to this message]
|