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