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

Posted by bill on 01/21/07 11:34

Batmanuel wrote:
> Good evening people, little question here... I'm trying to get this
> file upload script to work but it tells me that move_uploaded_file()
> fails because it doesn't have permission for the /tmp directory where
> the file is before the move. I would chmod /tmp itself but wouldn't
> that be a big security risk? is there another solution?
>
> Thanks for any help you can provide...
>
double check, I would guess that you do not have permissions for
the target directory. I ran into the same problem and had to
chmod to give other write to that directory, which is a problem.

move_uploaded file runs with the php or apache user, not you.

bill

 

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

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