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