*sigh* Super noob has a question :)
Posted: Thu Jan 22, 2004 5:13 pm
I've looked everywhere, and I'm kicking myself constantly over this, but how does one get the URL of a page and pass it to a variable as a string?
or
Would I get the current pages URL bu using something like this:
or would this be better?
essentially, what I want to do is pass the URL as a string to a variable, so that
$url = "http://www.someplace.com/somepage.php";
did any of that make sense?
Thanks in advance
or
Would I get the current pages URL bu using something like this:
Code: Select all
$url = $_SERVER['REQUEST_URI'];Code: Select all
$url = $_SERVER['PHP_SELF'];$url = "http://www.someplace.com/somepage.php";
did any of that make sense?
Thanks in advance