For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > January 2006 > Mkdir() Fwrite() Create files with chmod 0700 .. And not 0777 Why??









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Mkdir() Fwrite() Create files with chmod 0700 .. And not 0777 Why??
Sebastien Andreatta

2006-01-20, 7:02 pm

Hello everybody, i'm a new user from the mailing list..
I'm belgium man, 21 years and student on info ..
Sorry for the language but i'm leaver speak french ;-)

I'm begin a installation of a web server..
When i use a script like this :

<?
mkdir("test");
?>

The folder have 0700 chmod, and i can't write in it (apache.apache chown) !!
In the php doc they say, the chmod by default is 0777 why i don't have that?

I know i can use the chmod option and umask..
But some script don't use this, and i don't want to rewrite all..

I need also, to have a "mini" web hosting for the college and the user don't
know that, if they test a script like this, after they can't remove the
folder because it's not the apache user......

I'm use php 5 on Apache2 load has a module..

Thanks for your reply, good night ;-)

P.S : My english was correct? do you understand what i try to explain??

many thanks;)

________________________________________
_________________________
Protégez votre boîte de réception: Phishing : comment l'identifier, le
signaler et l'empêcher http://www.fr.msn.be/security/phishing/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com