Re: [PHP] Getting the file a PHP script is called from

2001-02-21 Thread Chris Lee
$PHP_SELF echo $PHP_SELF; -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Dan Watt"" <[EMAIL PROTECTED]> wrote in message 970j62$6j0$[EMAIL PROTECTED]">news:970j62$6j0$[EMAIL PROTECTED]... > As a beginner to PHP4, I wrote a simpl

Re: [PHP] Getting the file a PHP script is called from

2001-02-21 Thread Dan Watt
That returns the PHP file. I am including the PHP file via Server Side Includes. I want a way to detect what file it was included from. ""Chris Lee"" <[EMAIL PROTECTED]> wrote in message 970nbs$1ah$[EMAIL PROTECTED]">news:970nbs$1ah$[EMAIL PROTECTED]... > $PHP_SELF > > echo $PHP_SELF; > > > -- >

[PHP] Getting the file a PHP script is called from

2001-02-21 Thread Dan Watt
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 inside another include file, the footer to all of my pages so, it works out like this: