Posted by peter on 10/21/06 15:28
> 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?
Navigation:
[Reply to this message]
|