Individualized Content from Subdomain

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bigrockford
Forum Newbie
Posts: 2
Joined: Mon Oct 29, 2007 6:37 pm

Individualized Content from Subdomain

Post by bigrockford »

I am looking to have the content in my website have Individualized content for each user based on a unique subdomain entered by user...

I would advertise... something like...
john.doe.anywebsite.com
(firstname.lastname.domain.com)

And in the website you would see...

Welcome John Doe, blah blah
(Welcome firstname lastname, blah blah)

Any help would be awesome.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

$_SERVER['HTTP_HOST'] is pretty much it, unless you're talking about referrals...and those aren't reliable.
bigrockford
Forum Newbie
Posts: 2
Joined: Mon Oct 29, 2007 6:37 pm

Post by bigrockford »

Just want to grab a subdomain or multiple subdomains and use entered word in the sites content, word1.word2.domain.com etc...
Post Reply