RE: [PHP] Re: included file name -- DOCS ?

2002-04-04 Thread Mikhail Avrekh
Thanks guys, this is just what I needed ! I'm just surprised that this does not seem to be really documented anywhere. The only place where I could find this is in the Reserved Keywords section of the manual, where __FILE__, __LINE__ , const and use do not have links to explanatory pages of

RE: [PHP] Re: included file name

2002-04-03 Thread Maxim Maletsky
Try this: function whatFile($f) { $LOCALS['fname'] = $f; } $then in the file of yor interest do this: whatFile(__FILE__); and wherever next you will want to have that value the file name will be within $fname; Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com