RE: [PHP] Re: $PHP_SELF question

From: Date: Thu, 18 Apr 2002 15:06:54 +0000
Subject: RE: [PHP] Re: $PHP_SELF question
Groups: php.general 
Request: Send a blank email to php-general+get-93542@lists.php.net to get a copy of this message
Try and create a new php file with the following code and read the result: <?php phpinfo(); ?> thats it, a lot of useful info there! Regards Lars -----Original Message----- From: Joel Colombo [mailto:joel@graphicon.nu] Sent: 18 April 2002 16:03 To: php-general@lists.php.net Subject: [PHP] Re: $PHP_SELF question did u try $HTTP_REFERER ? that might do it... havent tested with an include though. Joel "Theodore Brinkman" <Theodore.Brinkman@standardregister.com> wrote in message news:5A0528E53FDFAB48B301F8BED4351382725719@ohdaytoxch03.US.SRC.LAN... > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#93542) next »