Agtronic Posted June 24, 2008 Share Posted June 24, 2008 Hey guys and gals, Little question for you. I have a hosting package with a site, and I have two domain names pointing to this server. The host doesn't offer the ability to have one of the names point to a different directory or script. My question is, can I use a PHP_SELF test to determine which domain name was used to pull the page, and then header() the correct page or root? Thank you for your time! -- Markku Link to comment https://forums.phpfreaks.com/topic/111608-solved-specific-question-about-php_self/ Share on other sites More sharing options...
trq Posted June 24, 2008 Share Posted June 24, 2008 $_SERVER['SERVER_NAME'] is likely more usefull. Link to comment https://forums.phpfreaks.com/topic/111608-solved-specific-question-about-php_self/#findComment-572894 Share on other sites More sharing options...
Agtronic Posted June 24, 2008 Author Share Posted June 24, 2008 Thanks! I will try messing with it! Link to comment https://forums.phpfreaks.com/topic/111608-solved-specific-question-about-php_self/#findComment-573261 Share on other sites More sharing options...
Agtronic Posted June 24, 2008 Author Share Posted June 24, 2008 I GOT IT! Works perfectly! Thanks so much! Link to comment https://forums.phpfreaks.com/topic/111608-solved-specific-question-about-php_self/#findComment-573277 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.