Anyone knows how I can get the name of an include'd/require'd file and not
getting the name of the main file.

My scenario is like this:

a.php:
require "b.php";

b.php:
echo $_SERVER['PHP_SELF'];
echo $_SERVER['SCRIPT_NAME'];

I get a.php when I want to have b.php.


(Please CC me since Im not a member of the list)

-- 
* John Ericson [EMAIL PROTECTED]
* ICQ: 7325429 JID: [EMAIL PROTECTED]
* web: http://john.pp.se

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to