RE: [PHP] URL information into a variable

From: Date: Sat, 23 Mar 2002 02:50:30 +0000
Subject: RE: [PHP] URL information into a variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-89805@lists.php.net to get a copy of this message
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:pschwar@jhmi.edu] Sent: Friday, March 22, 2002 9:08 PM To: php-general@lists.php.net Subject: [PHP] URL information into a variable How do I take the current URL and turn it into a variable? THANKS!! Phil

« previous php.general (#89805) next »