Re: Getting the file a PHP script is called from

From: Date: Wed, 21 Feb 2001 15:45:00 +0000
Subject: Re: Getting the file a PHP script is called from
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40975@lists.php.net to get a copy of this message
$PHP_SELF echo $PHP_SELF; -- Chris Lee Mediawaveonline.com em. lee@mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Dan Watt"" <danwatt@mediaone.net> wrote in message news:970j62$6j0$1@toye.p.sourceforge.net... > As a beginner to PHP4, I wrote a simple logging program (since my server > does not have the best logging functionality) to track where users go on my > website. The way I am implementing it is by including it as a <! --#include > virtual="myphpscript.php" --> inside another include file, the footer to all > of my pages > so, it works out like this: > HTML Page > -> Included footer > -> Included PHP script > > Now, the HTTP_ENV_VARS work fine even in this setup, and return > HTTP_REFERRER correctly as the page I visited before coming to the current > page. But that is not what I want. I would like a way, without putting the > php script inside my HTML files, to be able to determine what page called > the script. Any help would be appreciated! Thanks > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#40975) next »