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
with them all with .htaccess
or
use .htaccess to not to show them anymore...
Cheers,
Maxim Maletsky
-Original Message-
From: Matt Williams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 5:48 PM
To: Php-General@Lists. Php. Net
Subject: RE: [PHP] how do i hide my .inc files
Combine these options:
http://httpd.apache.org/docs/mod/mod_access.html#allow
http://httpd.apache.org/docs/mod/core.html#files
to exclude access to anything matching *.inc.
The safest/easiest thing is to move the files outside of the document path
and add that directory to your php include
don't name them .inc files.
Name them blahblah.inc.php or something that will be parsed, and
therefore not just gurped up by the server.
blest,
jeremy
--
Jeremy Kelley [EMAIL PROTECTED] pgp keyid 0xAECBA355
Phil 1:21 www.ganooz.com
Car pour moi,
Suite 433
Berkeley, CA 94710-2522
From: [EMAIL PROTECTED] ("Matt Williams")
Newsgroups: php.general
Date: 17 Jan 2001 05:58:59 -0800
Subject: RE: [PHP] how do i hide my .inc files in apache??
Files *.inc
Order allow,deny
Deny from all
/Files
in either your httpd.conf or a
PROTECTED]'
Subject: RE: [PHP] how do i hide my .inc files in apache??
I take it you're talking about normal html .inc files, and not the PHP
include() function? If so, this is well off-list, try the
comp.infosystems.www.servers heirarchy for this sort of thing.
But...
You can't, AFAIK
6 matches
Mail list logo