barkster Posted September 22, 2006 Share Posted September 22, 2006 I'm trying to get the full path of the url including any url parameters.for example I need http://www.domain.com/test/Test.php?234243=1231 I need Resultwww.domain.com/test/Test.php?234243=1231I tried $url = $_SERVER['HTTP_HOST'] . basename($_SERVER['REQUEST_URI']);but gives mewww.domain.com/Test.php?234243=1231 which is missing /test??Thanks Quote Link to comment Share on other sites More sharing options...
brendandonhue Posted September 22, 2006 Share Posted September 22, 2006 $_SERVER['REQUEST_URI'] should do what you want. Quote Link to comment 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.