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 Quote 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) Quote Link to comment https://forums.phpfreaks.com/topic/283641-_serverserver_name/#findComment-1457153 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.