note 40416 added to function.include
| From: | RecoilUK at rn2 dot php dot net | Date: | Wed, 03 Mar 2004 13:34:41 +0000 |
| Subject: | note 40416 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66160@lists.php.net to get a copy of this message | ||
Hi
For anyone just starting to use the include() function, please remember that by default, php only
parses pages with the .php extension.
I see so many people setting up Apache to parse .inc files etc, which is all very well, but what if
you change hosts and forget to setup .inc parsing, any sensitive information will be displayed as
is.
My way of doing it, is to just change the way you name your files (if you have to, that is)....
normal file....
foo.php
include file....
foo.inc.php
etc,etc
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40416
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40416&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40416&report=yes
Search -- http://master.php.net/manage/user-notes.php