Reply to Re: problems using copy() and rename()

Your name:

Reply:


Posted by mantrid on 10/21/06 14:11

"peter" <submit@flexiwebhost.com> wrote in message
news:ehd81o$cu8$1@aioe.org...
>
> "mantrid" <ian.dandav@virgin.net> wrote in message
> news:%7o_g.143$76.75@newsfe5-win.ntli.net...
> > Im trying to move a file but am having luck
> > my code is below. The temp and target paths are valid as they echo
> > correctly. but I cant get the copy() function to work, or the rename()
> > function
> >
> > $target_path = $targetdir . basename($uploadedfile["name"][$x]);
> > $temp_path = $tempdir. basename($uploadedfile["name"][$x]);
> >
> > echo "Target - ".$target_path." Temp - ".$temp_path."<br>";
> >
> > copy($temp_path, $target_path);
> >
> > has any one experienced this problem?
> >
>



> are you receiving any error if so what is it? Also if it is as it looks
and
> is a file that has been uploaded then why not use the move_uploaded_file()
> function.
>
>

I tried with the move_uploaded_file() originally but this didnt work
either. I thought maybe it only works initially with $_FILES as I understand
it checks that a file has been uploaded and returns negative if it cant find
one.
Ther is no error message it appears to work as my success message is
displayed but the file is not there

[Back to original 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

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