Eggzorcist Posted August 30, 2009 Share Posted August 30, 2009 How can I get the entire link in a string with the $_GET extensions... Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/172473-solved-_server-getting-full-url-with-_get-extension/ Share on other sites More sharing options...
ignace Posted August 30, 2009 Share Posted August 30, 2009 $scheme = !empty($_SERVER['HTTPS']) && 'on' === $_SERVER['HTTPS'] ? 'https' : 'http'; $url = $scheme . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; print "<a href="doc.php?url=$url">clickie</a>"; Quote Link to comment https://forums.phpfreaks.com/topic/172473-solved-_server-getting-full-url-with-_get-extension/#findComment-909276 Share on other sites More sharing options...
Eggzorcist Posted August 30, 2009 Author Share Posted August 30, 2009 thanks! Quote Link to comment https://forums.phpfreaks.com/topic/172473-solved-_server-getting-full-url-with-_get-extension/#findComment-909278 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.