Re: [PHP] include file identifier

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 10:09 am, Craige Leeder wrote: > On 2/5/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> If you want to avoid the overhead of include_once, it's a pretty >> common practice (borrowed from C .h files) to do: > > Just out of curiosity, how much additional overhead are we talki

Re: [PHP] include file identifier

2007-02-05 Thread Craige Leeder
On 2/5/07, Richard Lynch <[EMAIL PROTECTED]> wrote: If you want to avoid the overhead of include_once, it's a pretty common practice (borrowed from C .h files) to do: Just out of curiosity, how much additional overhead are we talking about? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] include file identifier

2007-02-05 Thread Eli
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.

Re: [PHP] include file identifier

2007-02-04 Thread Richard Lynch
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... But nothing I'm aware of exposes this to code in any way, ot

Re: [PHP] include file identifier

2007-02-03 Thread Robert Cummings
On Sun, 2007-02-04 at 03:27 +0200, Eli wrote: > Robert Cummings wrote: > > Looking at the code above... it would seem you want: > > > > include_once() > It's not the idea.. > > I'm not trying to make that code work, I want to know which exact > include (of the same file) does what.. > > Say

Re: [PHP] include file identifier

2007-02-03 Thread Larry Garfield
On Saturday 03 February 2007 7:27 pm, Eli wrote: > Robert Cummings wrote: > > Looking at the code above... it would seem you want: > > > > include_once() > > It's not the idea.. > > I'm not trying to make that code work, I want to know which exact > include (of the same file) does what.. Huh?

Re: [PHP] include file identifier

2007-02-03 Thread Eli
Robert Cummings wrote: Looking at the code above... it would seem you want: include_once() It's not the idea.. I'm not trying to make that code work, I want to know which exact include (of the same file) does what.. Say you got a loop of self-include: e.g: === a.php In "(id=X)!".. wha

Re: [PHP] include file identifier

2007-02-03 Thread Robert Cummings
On Sun, 2007-02-04 at 03:05 +0200, Eli wrote: > Hello, > > Does any included file in PHP have a unique identifier? (like a stack of > includes identifier). > > If the files names are different, then __FILE__ can be used as an > identifier. But if a file was included by itself, then __FILE__ is

[PHP] include file identifier

2007-02-03 Thread Eli
Hello, Does any included file in PHP have a unique identifier? (like a stack of includes identifier). If the files names are different, then __FILE__ can be used as an identifier. But if a file was included by itself, then __FILE__ is the same, tho there are 2 different includes of the same