Mkdir() Fwrite() Create files with chmod 0700 .. And not 0777 Why??
| From: | Sebastien Andreatta | Date: | Fri, 20 Jan 2006 21:29:00 +0000 |
| Subject: | Mkdir() Fwrite() Create files with chmod 0700 .. And not 0777 Why?? | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-16936@lists.php.net to get a copy of this message | ||
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/