Re: permissions

From: Date: Fri, 21 Apr 2006 21:44:11 +0000
Subject: Re: permissions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234525@lists.php.net to get a copy of this message
Benjamin Adams wrote:
I have a text file that is just being read by php Can I change the permissions of it so www can not read it? what username does php uses to read files? Use a .htaccess file, if your web server supports it.
For example, in apache2 you can do this: <FilesMatch "yourfile.txt">
       Order Allow,Deny
       Deny From All
</FilesMatch> See: http://httpd.apache.org/docs/2.0/howto/htaccess.html, http://httpd.apache.org/docs/2.0/mod/core.html#files, and http://httpd.apache.org/docs/2.0/mod/core.html#filesmatch jon

« previous php.general (#234525) next »