Which file am I ?

From: Date: Wed, 16 Aug 2000 07:38:03 +0000
Subject: Which file am I ?
Groups: php.general 
Request: Send a blank email to php-general+get-11939@lists.php.net to get a copy of this message
Hello ! I need to know wether a file "test.php" has been included in some other file or is called directly. Therefor, I want to compare the PATH_INFO and the filename "test.php". This works fine. Now I have a lot of files like "test.php" all with different names. How can I get the filename without saying $this_file = "..." ? I found nothing in phpinfo(). When the file is included, only the name of the file, which includes my file, is shown. Regards Martin

« previous php.general (#11939) next »