Getting URL
Posted: Wed May 24, 2006 3:12 pm
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?
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?