check out the $_SERVER global array... use var_dump($_SERVER) to see all of the values of the server array..they are also visible in phpinfo() output..
you need to know what url you are comparing with... so you can select the current url fromt he database with an SQL query..
the current url should be built with using the $_SERVER super global..
i dont know how exactly are you planning to compare them and what part of the url you want to take..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.