ID: 10148
Updated by: torben
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

It's not a function, but it is in the manual. I think you want the
__FILE__ constant.

http://www.php.net/manual/en/language.constants.php

__FILE__
  The name of the script file presently being parsed. If used within
  a file which has been included or required, then the name of the 
  included file is given, and not the name of the parent file. 

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

[2001-04-03 21:56:32] [EMAIL PROTECTED]
It would be nice to be able to call a function to return the name and path of a PHP 
script that is currently running (for instance, say TEST.PHP calls 
/WEB/PHPSTUFF/LIB.PHP the function would return /WEB/PHPSTUFF/LIB.PHP)

If this is already possible, I haven't been able to find a way to do it.  I've 
searched the documentation and asked around on different forums.

Thanks!

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



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10148&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to