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? 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>"; 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! 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
Archived
This topic is now archived and is closed to further replies.