note 17822 deleted from function.include by zak
| From: | zak@php.net | Date: | Thu, 27 Dec 2001 11:10:43 +0000 |
| Subject: | note 17822 deleted from function.include by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23881@lists.php.net to get a copy of this message | ||
There is one problem that can occur then making your includes have a ".php" extension.
If within the .php include file you make decisions based on the location of the current page (ie:
$HTTP_HOST.$PHP_SELF;) then the php within the include is executed before the include itself, so
that variable would return:
www.blah.com/my/ssi/is/here/include.php
Instead of the page that is including the file itself, as that is probably the one you would want to
return.