On Thu, 20 Feb 2003 14:41:09 +0100, you wrote:

>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?

If you call phpinfo(), you'll see bunch of variables that are related to
the filename in some way (PHP_SELF, REQUEST_URI, etc.). One of these may
help you.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to