Hi There.
I want to know how I can find the name of the current PHP script that is run.
For example if I load up myfile.php how do I figure out what that file name is?
You see, I have a header.inc type file that has some PHP code in there and I want that code to execute on most pages except a handful of pages. I figure that I could just put an:
if(!$page == myfile.php) {
execute code
}
make sense? or is there a better way to do this?
thanks!