Page 1 of 1

Get the name of the currrent PHP file

Posted: Tue Sep 16, 2003 6:09 pm
by maniac9
Is there a proper way to do this in code instead of using HTML or anything?

Posted: Tue Sep 16, 2003 6:11 pm
by JAM

Code: Select all

echo __FILE__;

Posted: Tue Sep 16, 2003 6:17 pm
by maniac9
great, is there a full listing of these environment variables somewhere, searching the php site is turning up nothing...

Posted: Tue Sep 16, 2003 6:33 pm
by JAM

Code: Select all

<?php
 phpinfo();
?>

Posted: Wed Sep 17, 2003 2:41 pm
by m3rajk
ever heard of EGPCS?