Multiple domain identification script

For quick answers to quick questions on whatever subject you need!

Moderator: Thought Police

Locked
Kajun
World Controller
World Controller
Posts: 10412
Joined: Tue Jan 22, 2002 12:00 am
Location: Hear.
Contact:

Multiple domain identification script

Post by Kajun »

Preliminary query really until I get some other stuff sorted out, but I would assume that if you had multiple domains active on the same content (mirroring) then you'd still be able to identify which domain was used to access it. For example, if we had ixyl.co.uk and slutfest.co.uk both active on ixyl's index page, you could use some scripting to identify which had been used to access it and act on that information subsequently.

Actually, I guess using HTTP_HOST in CGI or PHP should do the trick. Shouldn't it?
Kajun is awaiting approval.
DaBeeeenster
Beta-Mandarin
Beta-Mandarin
Posts: 893
Joined: Thu Sep 12, 2002 10:45 am
Location: Bondi Beach, Sydney ;)
Contact:

Post by DaBeeeenster »

Correct my dear Margeret.

You can rip it out of the request header. You can stuff with it at the scripting level or you can do it at the web server level.
Image
"All our beliefs are being challenged now, and rightfully so. They're stupid." - Bill Hicks
My Travels Blog
Kajun
World Controller
World Controller
Posts: 10412
Joined: Tue Jan 22, 2002 12:00 am
Location: Hear.
Contact:

Post by Kajun »

That's splendid. Thank you sire. Not as neat and tidy as having separate hosting solutions, but a darn sight cheaper.
Kajun is awaiting approval.
nightowl
Alpha (Conditioned)
Alpha (Conditioned)
Posts: 2057
Joined: Sat Jan 25, 2003 1:34 pm
Location: somewhere I dont want to be

Post by nightowl »

:?: I had nothing to do with it honest guv !

:P
If you can't change your circumstances, then change your perceptions :P
Kajun
World Controller
World Controller
Posts: 10412
Joined: Tue Jan 22, 2002 12:00 am
Location: Hear.
Contact:

Post by Kajun »

I'm sorry to hear that.
Kajun is awaiting approval.
Kajun
World Controller
World Controller
Posts: 10412
Joined: Tue Jan 22, 2002 12:00 am
Location: Hear.
Contact:

Post by Kajun »

Works well, thanks DaB. :D
Kajun is awaiting approval.
Locked