You are here: Re: problems using copy() and rename() « PHP Programming Language « IT news, forums, messages
Re: problems using copy() and rename()

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация