04-07-2008, 10:26 PM
|
#2 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
I'm not familiar with get_included_files. But from reading the docs, it should work. If its a PHP core function, it should be reliable.
If you for some reason dont want to use that. At the beginning of your page, put this code in
PHP Code:
define("FIRST_PAGE","page.php");
FIRST_PAGE is now the originating page. You can place this in as many included files as you want. So long as it is ran before the include statement, it is constant and will not change.
On a sidenote. PHP is a server side language, not a bit of it is ran on the browser. Therefore there is no cross-browser compatibility issues in PHP.
|
|
|
|