Organizational Research By

Surprising Reserch Topic

get url path in php using -'php,url'


get url path in php  using -'php,url'

I have a quick question in php.

I need to get the current page url, and then find the path. For example, if the current url is:

"http://www.example.com/example/test/hi.php?randomvariable=1"


I would want this:

"/example/test/hi.php?randomvariable=1"


Thank you!
    
asked Sep 8, 2015 by rajesh
0 votes
12 views



Related Hot Questions



Government Jobs Opening


...