Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Findout the page we're in?

Status
Not open for further replies.
May 22, 2002
63
0
0
GB
Hi

I would like an include in a PHP script to indentify the page into which it has been included....how can I do this?

Tried the $http_referer but that's not giving me the right answer as it tells me the link that loaded the page that calls the include file...

Cheers,

Anders
 
Just worked it out! I can use $PHP_SELF!!

Sorry for wasting your time!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top