ID:               16459
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: Win*/Slackware
 PHP Version:      4.1.2
 New Comment:

Sorry, i missed the constant "__FILE__".


Previous Comments:
------------------------------------------------------------------------

[2002-04-05 19:07:48] [EMAIL PROTECTED]

There doesn't appear to be a way to get the filename of code that is
currently executing. 

Eg. echo $SCRIPT_FILENAME; or echo $PHP_SELF; 
works fine in most situations, but as soon as the file containing this
code is included in another, they start to return the filename of the
includING file. (not the includED one).

I understand this generally goes against the purpose of include() but
this functionality would be very useful. 

Thanks

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16459&edit=1

Reply via email to