Parent File Constant?

From: Date: Fri, 30 Jun 2000 15:27:55 +0000
Subject: Parent File Constant?
Groups: php.general 
Request: Send a blank email to php-general+get-4043@lists.php.net to get a copy of this message
I've been looking through the list archives and the manual, but can't find out... how to get the name of the parent file (from an include statement). Example: main.php includes "header.php" and "footer.php". How does header.php (or footer.php) know that it was called by main.php, and not some other file? Is there a php constant or function that returns the parent file path/name? Or do I have to set a variable before my include statement? Thanks, mario

« previous php.general (#4043) next »