RE: [PHP] how do i hide my .inc files in apache??

From: Date: Thu, 18 Jan 2001 08:52:52 +0000
Subject: RE: [PHP] how do i hide my .inc files in apache??
Groups: php.general 
Request: Send a blank email to php-general+get-35305@lists.php.net to get a copy of this message
if they are called the same then you can add them ... how? good question ... how is .htaccess added.. the same way. there, in httpd.conf you can select which files not to show wit h, i think regular expression.. if you don't have the access to httpd.conf, or simply do not wish to use it, then just put a dot (.) infront the files you wich to hide, they won't be then shown.. (if apache is configured that way, it is usually the default installation) but, the best way, as you sayd is to have the whole library outside (better parralel) directory of your www root. or password protect a folder with them all with .htaccess or use .htaccess to not to show them anymore... Cheers, Maxim Maletsky -----Original Message----- From: Matt Williams [mailto:matt@yewlands.com] Sent: Thursday, January 18, 2001 5:48 PM To: Php-General@Lists. Php. Net Subject: RE: [PHP] how do i hide my .inc files in apache?? > My vote is still just for include files to have a standard (already > accepted) extension. I think you may be missing the point on this one. The question wasn't what to name included files but how to stop apache parsing or showing the contents of the include files. The obvious solution of course is to have the included files outside the web tree. M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#35305) next »