Re: server side including
| From: | Hans Prins | Date: | Thu, 20 Feb 2003 15:10:26 +0000 |
| Subject: | Re: server side including | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136371@lists.php.net to get a copy of this message | ||
$HTTP_SERVER_VARS['REQUEST_URI'] did the trick
"Hans Prins" <HPrins@xgn.nu> schreef in bericht
news:20030220134114.77762.qmail@pb1.pair.com...
> Im have a "script.php" which needs to be able to tell if it has been
> included in an .shtml file or not...
>
> e.g. if included is true: do this, else: do something else
>
> I could ofcourse do something like this:
>
> <!--#include
> virtual="/packages/combo1/example_red/poll/poll.php?included=yes" -->
>
> but it would be nice to totally let the php check if it has been
> included........
>
> Anyone have any ideas?
>
> hans
>
>