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
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 (W
2 matches
Mail list logo