Re: Which file "Included" me?
| From: | Sudheer | Date: | Wed, 18 Feb 2009 18:56:51 +0000 |
| Subject: | Re: Which file "Included" me? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288562@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
On Wed, 2009-02-18 at 23:57 +0530, Sudheer wrote:I'd use $_SERVER['REQUEST_URI'] :) Cheers, Rob. Hi Ed Curtis, Just do var_dump($_SERVER) ; and see which array key to use. REQUEST_URI gives you the request parameters as well, whereas PHP_SELF gives you the script name only. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.netEd Curtis wrote:Are you looking for $_SERVER['PHP_SELF'] ?thanks, EdIs 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.