Stupid PHP Question

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

I don't know why I can't remember this
What is the PHP Variable for catching the referring page?
(for this page it would show up as http://www.webmaster-forums.net/index.php)
Confused :confused: Confused

Laughing out loud

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

Took me 3 minutes to find it... bleh

<?php
$HTTP_REFERER
;
or
getenv(\"$HTTP_REFERER\");
?>

I feel so stupid

Busy's picture

He has: 6,151 posts

Joined: May 2001

you mean HTTP_REFERER ?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

lol, you guys are like Sir Farquad and the Gingerbread man...

HTTP_REFERER?

HTTP_REFERER!

HTTP_REFERER!?

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

HTTP_REFERER! He lives on getenv() lane!

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

lol ok...

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.