You are here: Re: (!mkdir("$username", 0777)) and umask « All PHP « IT news, forums, messages
Re: (!mkdir("$username", 0777)) and umask

Posted by J.O. Aho on 11/18/06 18:29

Not here Not Now wrote:
> $oldumask=umask(0);
> chmod("$username", 0777);
> umask($oldumask);
>
> Ok tried it plain as just umask with out params
>
> Default it should set to 777 still the directory is being created with
> the permission set to 755.

This may have to do with the users umask values, which usually is 0022.
Setting it to 0000 should solve your problem.


//Aho

 

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

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