Re: check if a file is included
| From: | Eric Butera | Date: | Sat, 13 Sep 2008 00:16:17 +0000 |
| Subject: | Re: check if a file is included | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280060@lists.php.net to get a copy of this message | ||
On Fri, Sep 12, 2008 at 7:41 PM, Ashley Sheridan
<ash@ashleysheridan.co.uk> 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@immigrationunit.com>
>> 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.