ztealmax Posted December 20, 2006 Share Posted December 20, 2006 hi how do i get the url of where the homesite is on?for example if i have my homepage on www.domain.xis it possible for the a script to check and get the url name? (www.domain.x) Link to comment https://forums.phpfreaks.com/topic/31426-how-do-i-get-the-hostname-or-url/ Share on other sites More sharing options...
esukf Posted December 20, 2006 Share Posted December 20, 2006 [code]<?php echo $_SERVER['SERVER_NAME'];?>[/code] Link to comment https://forums.phpfreaks.com/topic/31426-how-do-i-get-the-hostname-or-url/#findComment-145481 Share on other sites More sharing options...
ztealmax Posted December 20, 2006 Author Share Posted December 20, 2006 thank you worked great :D Link to comment https://forums.phpfreaks.com/topic/31426-how-do-i-get-the-hostname-or-url/#findComment-145482 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.