On Wed, 2009-02-18 at 23:57 +0530, Sudheer wrote:
> 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
> >
> Are you looking for $_SERVER['PHP_SELF'] ?

I'd use $_SERVER['REQUEST_URI'] :)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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

Reply via email to