Function to get the URL

A

Anonymous

Guest
Hey,

Is there a function that i can use to get the URL of the page???


Thanks in advance

Kap
 
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..
 
ok thanks.

What im trying to do is compare the url to a string from my database, but i am stuck.

How can i do this?

Is it possible to put the output data into an array and compare to thios array?

Thanks in advance
 
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..
 
Back
Top