Posted By

blubadger on 03/09/09


Tagged

url query


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

rezzz
lajevardi


RemoveQueryStringInURL


 / Published in: PHP
 

  1. $req = $_SERVER['REQUEST_URI'];
  2. $qs = strpos($req, '?');
  3. if ($qs) {
  4. $this->curURL = substr($req, 0, $qs);
  5. } else {
  6. $this->curURL = $req;
  7. }

Report this snippet  

You need to login to post a comment.