ShaKeD Posted December 15, 2007 Share Posted December 15, 2007 Hey, I want to make a script that take my address and print it. I mean, if I`m now at www.phpfreaks.com I want to do somthing like echo $mywebsite and to get: www.phpfreak.com what do I need to write at $mywebsite for getting this result? thanks in advance, Shaked. Quote Link to comment Share on other sites More sharing options...
Xyphon Posted December 15, 2007 Share Posted December 15, 2007 Can you be a little more specific? Quote Link to comment Share on other sites More sharing options...
ShaKeD Posted December 15, 2007 Author Share Posted December 15, 2007 solved I meant $_SERVER['SERVERNAME']; Quote Link to comment Share on other sites More sharing options...
CMC Posted December 15, 2007 Share Posted December 15, 2007 $_SERVER['SERVER_NAME'] Quote Link to comment 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.