Re: Variables not working

From: Date: Sat, 27 Apr 2002 01:34:25 +0000
Subject: Re: Variables not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94848@lists.php.net to get a copy of this message
Before you get carried away with registering globals, try echoing: $_SERVER["HTTP_USER_AGENT"]; Or, for versions prior to 4.1.X, change that to: $HTTP_SERVER_VARS["HTTP_USER_AGENT"]; Registering globals is insecure unless you are VERY careful about how every variable you have is defined... Cheers, # Nathan ----- Original Message ----- From: "Rasmus Lerdorf" <rasmus@lerdorf.ca> To: "baldey_uk" <> Cc: <> Sent: Friday, April 26, 2002 6:41 PM Subject: Re: [PHP] Variables not working Turn on register_globals in your php.ini file. On Sat, 27 Apr 2002, baldey_uk wrote: > Hello all, im not sure if its my installation or if on doing something wrong > but i cant seem to use any of the variables from forms that i PUT to. Or any > full stop! even > > <?php echo $HTTP_USER_AGENT; ?> > > doesnt out put anything. Anyone seen this before? > thanks in advance for your help > > > Cheers From > > baldey_uk > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#94848) next »