monkeytooth Posted April 16, 2009 Share Posted April 16, 2009 Is there a simple way to catch the tail end of a url? ie: http://www.whatever.com/blah.php?a=1&b=2&c=3 Quote Link to comment https://forums.phpfreaks.com/topic/154364-tail-end-of-a-url/ Share on other sites More sharing options...
laffin Posted April 16, 2009 Share Posted April 16, 2009 parse_url Quote Link to comment https://forums.phpfreaks.com/topic/154364-tail-end-of-a-url/#findComment-811552 Share on other sites More sharing options...
premiso Posted April 16, 2009 Share Posted April 16, 2009 parse_url Maybe of some assistance to you. Quote Link to comment https://forums.phpfreaks.com/topic/154364-tail-end-of-a-url/#findComment-811554 Share on other sites More sharing options...
gevans Posted April 16, 2009 Share Posted April 16, 2009 <?php echo $_SERVER['QUERY_STRING']; //prints a=1&b=2&c=3 echo $_SERVER['PHP_SELF']; //prints /blah.php or echo $_SERVER['REQUEST_URI']; //prints /blah.php?a=1&b=2&c=3 ?> Those are another option Quote Link to comment https://forums.phpfreaks.com/topic/154364-tail-end-of-a-url/#findComment-811558 Share on other sites More sharing options...
monkeytooth Posted April 16, 2009 Author Share Posted April 16, 2009 Thank you all, that helps wonderfully. Goes to show me I was deffinately going about it the wrong way.. Thanks again Quote Link to comment https://forums.phpfreaks.com/topic/154364-tail-end-of-a-url/#findComment-811559 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.