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. Link to comment https://forums.phpfreaks.com/topic/81849-get-my-address-from-address-bar/ Share on other sites More sharing options...
Xyphon Posted December 15, 2007 Share Posted December 15, 2007 Can you be a little more specific? Link to comment https://forums.phpfreaks.com/topic/81849-get-my-address-from-address-bar/#findComment-415813 Share on other sites More sharing options...
ShaKeD Posted December 15, 2007 Author Share Posted December 15, 2007 solved I meant $_SERVER['SERVERNAME']; Link to comment https://forums.phpfreaks.com/topic/81849-get-my-address-from-address-bar/#findComment-415815 Share on other sites More sharing options...
CMC Posted December 15, 2007 Share Posted December 15, 2007 $_SERVER['SERVER_NAME'] Link to comment https://forums.phpfreaks.com/topic/81849-get-my-address-from-address-bar/#findComment-415827 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.