You are here: Re: move_uploaded_file() problem. « PHP Programming Language « IT news, forums, messages
Re: move_uploaded_file() problem.

Posted by Erwin Moller on 04/12/07 19:46

just_me wrote:

> Hello everybody,
>
> I am using move_uploaded_file() in a form to handle image uploading,
> and it worked just great when I was testing locally in my computer.
> After uploading the file in my host provider I get a warning (not an
> error) "Permission denied" to move the temporary file to folder I
> want.
> Should I email the provider or it's somewhere else the problem?
>
> Any help is welcome!
> Thanks a lot for your time, I appreciate that.


Hi,

The folder your are moving to is the problem.
That folder needs to be writable for the user that runs PHP.

If you are on Linux, that user is often named www-data, or nobody, or
Apache.
If you are silly and run W$ OS with IIS as webserver, the user is named:
IUSR_<machinename>

Just make sure they may write in your targetfolder and your are fine.

Good luck!

Regards,
Erwin Moller

 

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

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