You are here: Re: move_upoaded_file permissions problem - Does something need configured on server? « PHP Programming Language « IT news, forums, messages
Re: move_upoaded_file permissions problem - Does something need configured on server?

Posted by Erwin Moller on 07/31/06 12:47

bizt wrote:

>> To check if this is the case:
>> 1) check which directory is used to by PHP to store tempfiles,
>> 2) check its filepermissions for user PHP (apache/nobody/www-data,
>> whatever that is in your case).
>
> Thanks for that
>
> Now, I purchase my webspace from a hosting company. Would I, in most
> cases, have access to the temp dir and would I be able to change the
> file permissions?

Yes, under most setups you have both write and read permissions on such a
temp dir.
Of course, the filepermissions of the files you want to access (via
move_uploaded)file()) IN the tempdir is what really matters.

Maybe your hostingcompany made PHP store files as the PHP-user with no
readrights, which sounds very strange to me.

You can check this yourself by using php_info(), and see what you can find
out about the tempdirectory. If you have shellaccess you can see the
directorypermissions yourself.

I contacted my hosting company and they made some
> changes that allowed it to work but they didnt give much info into what
> was carried out.

Good it works now. Bad they didn't give you a short description on what they
changed. That way it is hard to learn what went wrong.

>
> Cheers
>
> Burnsy


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

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