Re: $PHP_SELF question

From: Date: Sat, 20 Apr 2002 05:23:51 +0000
Subject: Re: $PHP_SELF question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93793@lists.php.net to get a copy of this message
Spend a bit of time reading up on predefined variables (like $PHP_SELF) in the manual: http://www.php.net/manual/fi/reserved.variables.php I believe you're after SCRIPT_NAME, but it's worth familiarising yourself with them all for future reference. Justin French -------------------- Creative Director http://Indent.com.au -------------------- on 18/04/02 11:48 PM, Brinkman, Theodore (Theodore.Brinkman@standardregister.com) wrote: > I've got an include file that provides the basic framework for every page on > my site, and at the bottom of each page, I want to spit out when the page > was last updated. I used $PHP_SELF inside the include file, and got the > include file's path. Is there a variable equivalent to $PHP_SELF that > returns the path for the file that is being executed? > > Basically, if I'm running index.php, and I include template.php is there any > way, from inside template.php, to get index.php short of passing it as a > parameter? > > - Theo

« previous php.general (#93793) next »