Re: File Access Rights

From: Date: Wed, 05 Mar 2003 20:23:59 +0000
Subject: Re: File Access Rights
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138353@lists.php.net to get a copy of this message
On Thursday 06 March 2003 03:51, Pushpinder Singh Garcha wrote: > My php script needs to read a text file that is stored in the same Dir > as the php file. However I do not want to allow users to be able to see > the contenst of the file from the Browser. Please suggest some remedy. If you're using apache you can use an <Files> directive to deny access to said file from being accessible by browsers. <Files secret-file.txt> Deny from all </Files> -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* "Free markets select for winning solutions." -- Eric S. Raymond */

« previous php.general (#138353) next »