Re: Pulling Variables from URL

From: Date: Wed, 20 Feb 2002 22:42:56 +0000
Subject: Re: Pulling Variables from URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85625@lists.php.net to get a copy of this message
phpinfo(); is your friend. Insert into a PHP script which has a query string (the part of the URL after the ?) and look at the environment variables available and listed in the output generated by phpinfo(). The variable you're looking for is $QUERY_STRING, but you really should get familiar with all of the other variables available since there are many that are quite useful. Also see parse_url() in the manual since it lets you grab each of the URL's components separately and you can supply the URL as $SCRIPT_URI, $SCRIPT_URL or something similar.
Thanks that is what I needed. I am starting to learn more about phpinfo. Is there a really good place that documents all the options and variables and such?

« previous php.general (#85625) next »