RE: [PHP] Site Structure

From: Date: Mon, 23 Apr 2001 17:54:31 +0000
Subject: RE: [PHP] Site Structure
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49897@lists.php.net to get a copy of this message
This is true and I do this in .htaccess or in the main Apache config file when possible. However, for those who do not have control over the main config file, you are at the mercy of the system operator. They could turn off looking at your .htaccess files and not have the "<Files>" directive to hide the .inc files and then your code you thought private is not private at all. The moral of this is to always assume the worst and put those .inc files anywhere, but the web tree. However, do this only if you care about protecting the contents. Caveat Emptor > -----Original Message----- > From: Kurth Bemis [mailto:kurth@usaexpress.net] > Sent: Monday, April 23, 2001 1:24 PM > To: Toby Miller; Jordan Elver > Cc: PHP General Mailing List > Subject: Re: [PHP] Site Structure > > > At 01:12 PM 4/23/2001, Toby Miller wrote: > > personally i deny all access to my .inc files. with this Apache config... > > works really good :-) > > in httpd.conf > > # The following prevents .inc file from being read by web clients > > <Files ~ ".inc"> > Order allow,deny > Deny from all > </Files> > >

« previous php.general (#49897) next »