Advertisement
villers

Untitled

Jan 9th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. function stripsymbol($string)
  2. {
  3.         preg_match_all("([a-zA-Z0-9/_]*)", urldecode($string), $result);
  4.         return implode($result[0]);
  5. }
  6.  
  7. $url = isset($_SERVER['PATH_INFO']) ? stripsymbol($_SERVER['PATH_INFO']) : "/";
  8. $baseurl = stripsymbol(str_replace($url, "/", stripcslashes($_SERVER["REQUEST_URI"])))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement