Re: Which file "Included" me?

From: Date: Wed, 18 Feb 2009 18:37:53 +0000
Subject: Re: Which file "Included" me?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-288557@lists.php.net to get a copy of this message
Ed Curtis wrote:
Is there a function or variable that will tell me if a file has asked another file to include something much the same as $_SERVER['HTTP_REFERER'] works. I have a script that is included on every page of a site but also needs to include some javascript only if it's called from a certain URL. thanks, Ed
http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html explains a technique to validate the input as well (don't trust that is clean)

« previous php.general (#288557) next »