codrgii Posted June 17, 2011 Share Posted June 17, 2011 Is there a way in php to collect the url request? to be clear i would like to collect the info that is in red below www.mysite.com/collect_this is there a way? Quote Link to comment Share on other sites More sharing options...
requinix Posted June 17, 2011 Share Posted June 17, 2011 With the leading slash, $_SERVER["REQUEST_URI"] That includes the query string. If you don't want that, strtok($_SERVER["REQUEST_URI"], "?") 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.