mgs019 Posted January 31, 2007 Share Posted January 31, 2007 I am a bit of a beginner with php. I am writting a portable module in php but I need it to determine the webpage's url so it can check against an sql database whether the site is registered.Any ideas how I could do this? is there a php function like geturl() or something? Link to comment https://forums.phpfreaks.com/topic/36499-how-do-i-detect-a-websites-full-url-for-a-portable-script/ Share on other sites More sharing options...
otuatail Posted January 31, 2007 Share Posted January 31, 2007 $_SERVER['HTTP_HOST'] will give the url you need.Desmond Link to comment https://forums.phpfreaks.com/topic/36499-how-do-i-detect-a-websites-full-url-for-a-portable-script/#findComment-173732 Share on other sites More sharing options...
mgs019 Posted January 31, 2007 Author Share Posted January 31, 2007 Thanks thats brilliant. Link to comment https://forums.phpfreaks.com/topic/36499-how-do-i-detect-a-websites-full-url-for-a-portable-script/#findComment-173734 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.