Re: [PHP] Is __FILE__ still current or is there something newer?

2002-12-23 Thread Rick Widmer
At 03:05 PM 12/22/02 +, z z wrote: __FILE__ is useful to know the current script's path __FILE__ is a 'constant' defined by the Zend Engine that tells you the name of the current file. If you are in an Include the name of the included file is returned, if you are in the main file its

[PHP] Is __FILE__ still current or is there something newer?

2002-12-22 Thread z z
Hi all I'm reviewing a few things before starting a new project. I often need to include() a file relative to the current script which itself is included. __FILE__ is useful to know the current script's path but it seems to be totally undocumented at php.net except for a few indirect