On Sat, Sep 13, 2008 at 5:45 AM, Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx> wrote: > Well checking the $_SERVER array will tell you if the current page > requested by the visitor is the script you want to check for. There's > something in an if statement in PHP called else, so you can check if it > isn't... That should do exactly what you just asked. > > > Ash > www.ashleysheridan.co.uk > > > ---------- Forwarded message ---------- > From: "Eric Butera" <eric.butera@xxxxxxxxx> > To: ash@xxxxxxxxxxxxxxxxxxxx > Date: Fri, 12 Sep 2008 20:16:17 -0400 > Subject: Re: check if a file is included > On Fri, Sep 12, 2008 at 7:41 PM, Ashley Sheridan > <ash@xxxxxxxxxxxxxxxxxxxx> wrote: >> Could you not check one of the variables in the $_SERVER array to >> determine if the script called by the browser is the current file? >> >> ---------- Forwarded message ---------- >> To: clive <clive_lists@xxxxxxxxxxxxxxxxxxx> >>> 2. included from another file > > Don't forget #2. I just threw it out as a suggestion because the > current requested file might not be intercept.php. If I were trying > to do such a thing I'd probably go about it differently altogether > depending on why I needed to know what was in the file. > > Please stop top-posting. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php