$PHP_SELF problem

From: Date: Tue, 20 Apr 2004 10:06:14 +0000
Subject: $PHP_SELF problem
Groups: php.general 
Request: Send a blank email to php-general+get-183954@lists.php.net to get a copy of this message
Hi $thisFileName = $PHP_SELF; works in a file just a few lines after the program start. $thisFileName = $PHP_SELF; doesn't work (echo ("<p>Debug: self: $PHP_SELF</p>"); returns <p>Debug: self: </p>) if it's within function getNavigation() in the Navigation object called by another program. Why? The Navigation object is called like this: include ("Navigation.php4"); $myNavigation = new Navigation ("a", "b"); $myNavigation->getNavigation(); I guess I'm asking $PHP_SELF something confusing. Does it respond "index.php4" which is where the above three lines reside, or Navigation.php4 which is where the actual $PHP_SELF resides. All help appreciated :-) Cheers J

« previous php.general (#183954) next »