Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Get Current Script File Name
April 26, 2006, 10:45 pm
rate this thread
By this I mean the name of the include file that is being executed:
//Call some function to display include.php or whatever my filename is
inlcude( "include.php" );
I tried everything in the $_SERVER variable but to no avail - Googling
it doesn't help as it all points to either the include method or the
$_SERVER variable. These all just give me 'holder.php' or similar.
I want this as I want to create a LOGGER class similar to the one in
Java to catch errors and keep them logged in a file I can download from
time to time.