Re: .inc over .php

From: Date: Fri, 19 Apr 2002 16:05:19 +0000
Subject: Re: .inc over .php
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-93725@lists.php.net to get a copy of this message
3) Block downloads on .inc files, like using a <Files> directive in httpd.conf or a .htaccess file in apache. (Or whatever on another web server.) Now, even if a user tries to view that file, it won't execute at all, thus perhaps saving you some memory and clock cycles. (And it's generally more secure than treating them as php files since the includes might do something to, say, a database that you don't want them to do unless they're included into a valid php file request.) J Jason Wong wrote: > > There are two ways to counter this: > > 1) have the .inc files in a directory outside the scope of the webserver > directory. > > 2) set the webserver to treat .inc files as php files. >

« previous php.general (#93725) next »