This is a discussion on How do I get the name of the *included* file? within the PHP General forums, part of the PHP Programming Forums category; $_SERVER['PHP_SELF'] will give me the name of the file that's being called in the HTTP request. But, if ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Nov 25, 7:55 pm, dterr...@hotmail.com wrote:
> $_SERVER['PHP_SELF'] will give me the name of the file that's being > called in the HTTP request. > > But, if that file require_once's another file, how does that other > file get it's own file name? __FILE__ <http://www.php.net/manual/en/language.constants.predefined.php> |