LanceT Posted April 12, 2007 Share Posted April 12, 2007 So for example if my page was www.domain.com/page.php Then I need a function to return "www.domain.com/page.php" Is there a pre-written method to doing this? Link to comment https://forums.phpfreaks.com/topic/46777-get-the-url-that-the-current-script-is-running-at/ Share on other sites More sharing options...
Glyde Posted April 12, 2007 Share Posted April 12, 2007 $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] Link to comment https://forums.phpfreaks.com/topic/46777-get-the-url-that-the-current-script-is-running-at/#findComment-228007 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.