What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » php help: http_referer

php help: http_referer
Author: Message:
.Roy
Veteran Member
*****

Avatar

Posts: 1526
Reputation: 11
20 / Male / –
Joined: Aug 2004
O.P. php help: http_referer
what i want to do is:

IF HTTP_REFERER = specific ip-address (coming from a specific website/server)

do something

else

do something else.

what's the php code for this
please help ^^.
10-07-2008 08:58 AM
Profile PM Web Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: php help: http_referer
The variable name you're looking for is $_SERVER['HTTP_REFERER']

Just remember that the same webpage can have more than one URL (with or without www, trailing slash, GET variables etc)

Try making a page with print_r($_SERVER) in it too, to see all of the various ptions available. Be caucious however, this list of variables changes depending on the versoon of apache and OS type
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
10-07-2008 05:38 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On