| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
What URL?
Situation -
client has parked domains (main=.com, plus .net / .org). How, with PHP, do I detect which URL the site visitor is coming to the site through? He wants to echo to the customer "Thanks for coming to MYSITE.COM" if the guest comes via http://mysite.com. He wants to echo to the customer "Thanks for coming to MYSITE.ORG" if the guest uses http://mysite.org Etc. See what I'm trying to do? It should be possible.. but I don't know how... John
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#2 (permalink) |
|
I admire kayla
On a golden path...
Joined in Aug 2003
Lives in Saint Petersburg, Florida
Hosted on VPS5
478 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
|
It is possible, let me look into my php bible holdup..
__________________
“The object of war is not to die for your country, but to make some other bastard die for his.” -George Patton VPS5 |
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
Super #1
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
|
These looks like the same thread to me.
![]() by the way.... could it not just be echo ( somestringmanipulationfunction($_SERVER['HTTP_HOST'])); without the if? that way it just works now and forever. |
|
|
|
|
|
#8 (permalink) |
|
Peaches!
Excelling Contributor
Joined in Jul 2003
Lives in Ottawa, Ontario, Canada
Hosted on Jose, Pass19
564 posts
Gave thanks: 0
Thanked 0 times
|
Eww, you used $HTTP_HOST. Never use it that way, ugly ugly. Only do that if you've done something like $HTTP_HOST = $_SERVER['HTTP_HOST'];
|
|
|
|