Here you go:
<?
// ////////////////////////////////////////////////////////
// Put current URL into a variable
//
// Inelegant but it works
// ////////////////////////////////////////////////////////
$url = $_SERVER["HTTP_HOST"] . $PATH_INFO;
print "url = $url";
?>
Scott
-----Original Message-----
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 9:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] URL information into a variable
How do I take the current URL and turn it into a variable?
THANKS!!
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php