RE: [PHP] Protecting files
| From: | Luke Woollard | Date: | Mon, 17 Feb 2003 11:29:41 +0000 |
| Subject: | RE: [PHP] Protecting files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135917@lists.php.net to get a copy of this message | ||
If you want to hide the content of an .inc or other file that contains PHP
code simply rename it with a .php
ie: config.inc becomes config.inc.php
the server will parse the file as PHP now and not allow users to download
it...
Alternatively you can protect a directory with a .htaccess file if you are
using apache.
See: http://httpd.apache.org/docs/howto/htaccess.html
-----Original Message-----
From: PR [mailto:pax@cfl.rr.com]
Sent: Tuesday, 18 February 2003 8:18 AM
To:
Subject: [PHP] Protecting files
Hello,
How can I protect my php files among other files like templates
(.inc) and mysql config (config.inc) files being copied/read/imported
(front
page)/used by other applications other than my
site...
can this be done by htaccess? is so , could anyone point me into right
direction?
--
Thank you,
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php