Posted By


blubadger on 03/09/09

Tagged


Statistics


Viewed 703 times
Favorited by 2 user(s)

RemoveQueryStringInURL


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.