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 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php