Re: [Files suffix] .inc.php files
| From: | Leif Gregory | Date: | Tue, 31 May 2005 17:55:42 +0000 |
| Subject: | Re: [Files suffix] .inc.php files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216100@lists.php.net to get a copy of this message | ||
Hello Martin,
Sunday, May 29, 2005, 9:24:00 PM, you wrote:
M> I saw files like "file.inc.php" and "file.inc"
M> What is the *.inc suffix good for ?
It's good for a lot of trouble if the webserver hasn't been set up to
parse .inc files as PHP. If it hasn't then someone can request that
file in a broswer and see the code.
I'd just stay away from using .inc for an include and do either of the
below:
config.inc.php
or just
config.php
Whichever floats your boat.
--
Leif (TB lists moderator and fellow end user).
Using The Bat! 3.5.20 under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB