[thelist] php function to return filename

Matt McKeon matt at camadro.com
Thu Oct 30 14:58:04 CDT 2008


Bob Meetin wrote:
> is there a php function that can be used to return the filename that it 
> is sitting in, or actually to place the name into a variable?


Do you mean something like $_SERVER['SCRIPT_NAME'] [0], or maybe the 
magic constant __FILE__ [1] To retrieve the name/path of the currently 
executing script?

HTH
-Matt


[0] http://us3.php.net/manual/en/reserved.variables.server.php
[1] http://us3.php.net/manual/en/language.constants.predefined.php



More information about the thelist mailing list