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: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]


Удаленная работа для программистов  •  Как заработать на 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

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