Reply to Re: Upload file permissions problem

Your name:

Reply:


Posted by Willem Bogaerts on 07/11/07 12:56

> ... I can chmod the file after is is moved into the
> destination folder via move_uploaded_file(), but I'm trying to understand
> why the uploaded file permission ends up at 0600 ?

Ok, I thought that you could not upload at all due to rights problems.
But I still cannot see the problem. The "upload generator" and the "web
server" are still the same user as far as I know, so this user should be
able to read (and serve) the 0600 files just fine.
As Jerry Pointed out, you can set the default umask in apache. Note that
this is a negative mask, so you have to set the bits that you want
cleared in the file permissions.

Best regards,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/

[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

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