Predefined Variables

Fred Atkinson fatkinson at mishmash.com
Sat Aug 1 21:56:33 EDT 2009


On Thu, 23 Jul 2009 15:28:50 +0200, "Diez B. Roggisch"
<deets at nospam.web.de> wrote:

>Fred Atkinson wrote:
>
>> Is there a pre-defined variable that returns the GET line
>> (http://www.php.net/index.php?everythingafterthequestionmark) as a
>> single variable (rather than individual variables)?
>
>Variables don't return things. Functions do. And additionally the answer
>depends on what and with what you actually do.
>
>Diez

	I want to display the client browser's IP address on the Web
page.  

	I'd like to create a variable like this: ip = somefunction(). 
	Then I can print the IP address on the Web page and/or log it
in an error file.  



					Fred 



More information about the Python-list mailing list