wright67uk Posted November 6, 2013 Share Posted November 6, 2013 How can I echo server name without the tld? I need to do this for multiple domains, all of which end in .co.uk Link to comment https://forums.phpfreaks.com/topic/283641-_serverserver_name/ Share on other sites More sharing options...
requinix Posted November 6, 2013 Share Posted November 6, 2013 They all end in ".co.uk"? substr($_SERVER["SERVER_NAME"], 0, -6) Link to comment https://forums.phpfreaks.com/topic/283641-_serverserver_name/#findComment-1457153 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.