get_included_files to find originating script?
View Single Post
04-07-2008, 10:26 PM
Join Date: Sep 2007
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
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
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.
View Public Profile
Send a private message to Village Idiot
Find More Posts by Village Idiot