Hi!
How does server handle the .inc extension and for what do I use it ?
Where can I read about it?
Thanks in advace
Jan Grafström
--
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
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
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
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
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: [EMAIL PROTECTED]
For
, 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?
Even better use mod_rewrite so that .inc files
are never displayed
7 matches
Mail list logo