Re: File extension inc?
| From: | Sheridan Saint-Michel | Date: | Wed, 03 Oct 2001 19:18:17 +0000 |
| Subject: | Re: File extension inc? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69818@lists.php.net to get a copy of this message | ||
Remembering, of course, to check and make sure your include statements are
of the form include("/path/file.inc") rather than
include("http://mysite.com/path/file.inc") BEFORE
adding the below directive
(one mistake I won't ever make again =P )
Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com
----- Original Message -----
From: "Rasmus Lerdorf" <rasmus@php.net>
To: <jallen01@speakeasy.net>
Cc: <php-general@lists.php.net>
Sent: Wednesday, October 03, 2001 1:59 PM
Subject: RE: [PHP] File extension inc?
> > Even better use mod_rewrite so that .inc files
> > are never displayed :-)
>
> mod_rewrite is severe overkill for this. Just use:
>
> <Files ~ "\.inc$">
> Order allow,deny
> Deny from all
> </Files>
>
> -Rasmus
>
>
> --
> 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