On Wed, Oct 03, 2001 at 02:13:54PM +0200, Jan Grafström wrote:
> How does server handle the .inc extension and for what do I use it ?
> Where can I read about it?
This depends on the setup of the web server. On some servers, it is set
up to be parsed just as a .php extension would be. On these
Use the '.inc' extension only for files that are not directly accessible to the client.
For example, database configuration files do not need to be php and you can mark them
as '.inc' for increased code legibility. AFAIK a client's request to one of these files
won't be served at all.
D. Alvarez
On Wednesday 03 October 2001 12:13, Jan Grafström wrote:
> Hi!
> How does server handle the .inc extension and for what do I use it ?
You should be aware that if the webserver is not set up to handle .inc files
as PHP code, that it might output them as text to the user. Thus possibly
showing pa
> On Wednesday 03 October 2001 12:13, Jan Grafström wrote:
> > Hi!
> > How does server handle the .inc extension and for what do I use it ?
>
> You should be aware that if the webserver is not set up to handle .inc files
> as PHP code, that it might output them as text to the user. Thus possibly
>
Even better use mod_rewrite so that .inc files
are never displayed :-)
Jeremy Allen
elliptIQ Inc.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL P
> Even better use mod_rewrite so that .inc files
> are never displayed :-)
mod_rewrite is severe overkill for this. Just use:
Order allow,deny
Deny from all
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
site Administrator
FoxJet, an ITW Company
www.foxjet.com
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 1:59 PM
Subject: RE: [PHP] File extension inc?
>
7 matches
Mail list logo