Re: include file identifier

From: Date: Mon, 05 Feb 2007 12:59:28 +0000
Subject: Re: include file identifier
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-248326@lists.php.net to get a copy of this message
Richard Lynch wrote:
On Sat, February 3, 2007 7:05 pm, Eli wrote:
Does any included file in PHP have a unique identifier? (like a stack of includes identifier).
Down in the guts of PHP source, there may be some kind of file handler which is unique...
Actually, that's what I need. I want to know which "instance" of the file is running.. __FILE__ only gives the filename, but if the file is included in itself, there's no way to distinct which "instance" of them is currently running.. The base reason for this is storing some extra environment data on each file included.. -thanks, Eli

« previous php.general (#248326) next »