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

Posted by Schraalhans Keukenmeester on 04/13/07 08:29

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.
>
In addition to Erwin's reply, in my case the open_basedir restriction
added to the problem: the 'final' upload folder should be one 'under'
the basedir, if it's set at all of course.

If open_basedir is set to a dir under the wwwroot a security concern
arises: since the apache server has to be able to write in the dir, in
principle ANY server-parsed script run on the machine can
write/read/modify/delete stuff in the dir.

Sh.

 

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

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