Page 1 of 1

Getting URL

Posted: Wed May 24, 2006 3:12 pm
by psychotomus
So I used $_SERVER['PHP_SELF']

and it returns jokes.php but the url itself is jokes.php?Jokes=Bar%20Jokes&?Joke=3

how do I get the full URL... alternatively I did this.

$the_url = str_replace(" ", "%20", "http://www.po2mob.com/jokes.php?Jokes=" . $_GET['Jokes'] . '&Joke=' . $_GET['Joke']);

so all " " is %20, but i get a T_VARIABLE error. any suggestions?

Posted: Wed May 24, 2006 3:15 pm
by feyd
Did you ask this already?

viewtopic.php?t=37950

Posted: Wed May 24, 2006 3:19 pm
by psychotomus
thats me aight. im out of it today. for a second i thought i posted this twice today. i did use search though =) so don't try to say i didnt cause i did.