default umask

From: Date: Wed, 01 Sep 1999 17:59:43 +0000
Subject: default umask
Groups: php.dev 
Request: Send a blank email to php-dev+get-10416@lists.php.net to get a copy of this message
This message was sent from Geocrawler.com by "Martin Dvorak" <mdvorak@ninell.cz> Be sure to reply to that address. Hi all, Is there a way in PHP3 to change the default umask when running as an Apache module? I mean not by using umask function of PHP3. We are an ISP and because of our setup we want our users' PHP3 scripts to run with 007 umask by default (we have really strong need for this). I browsed through PHP3 source code and it seems to me there is no other way to do it except to do it by modifying code (only non-module version has the opportunity to set the umask on command line). I am not so familiar with the code as you. Please, give me some advice where to put the umask call in the code to be sure it's clean and it's always called before executing the script. Thanks very much, Martin Geocrawler.com - The Knowledge Archive

« previous php.dev (#10416) next »