ravens_chance Posted January 29, 2010 Share Posted January 29, 2010 Hello, Is there a way use something similar to the $_GET function for a sub-domain? I to be able to have my sub-domains all use the root directory, but have information filtered for a specific sub-domain. So, if I have list A in MySQL database, which has a.1 a.2 a.3 a.4 but I only want a.1 & a.4 to show up in sub-domain 1, and a.2 to show up in sub-domain 3, but they all need to be accessing the same root files, how do I achieve this? Thank you Link to comment https://forums.phpfreaks.com/topic/190201-sub-domains-calling-unique-content/ Share on other sites More sharing options...
trq Posted January 29, 2010 Share Posted January 29, 2010 Just parse the $_SERVER['SERVER_NAME'] variable for the sub-domain. Link to comment https://forums.phpfreaks.com/topic/190201-sub-domains-calling-unique-content/#findComment-1003473 Share on other sites More sharing options...
ravens_chance Posted January 29, 2010 Author Share Posted January 29, 2010 sweet! thank you Link to comment https://forums.phpfreaks.com/topic/190201-sub-domains-calling-unique-content/#findComment-1003738 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.