Re: [PHP] changing the global variables (_SERVER[HTTP_USER_AGENT])

2006-10-04 Thread Richard Lynch
Register Globals will take all the keys/values in $_SERVER/$_POST/$_GET/$_COOKIES and turn each one into a variable in your script. It is equivalent to: extract($_POST); extract($_GET); extract($_COOKIE); . . . The GPC settings in php.ini determine the order of the above statements, in case

Re: [PHP] changing the global variables (_SERVER[HTTP_USER_AGENT])

2006-10-03 Thread Balaji A
Thanks for the reply rick. I actually want to change the user agent header in the request sent by the client. I want to send a request to the server with different user agent header. Is it possible to change? Thanks Balaji On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: the

RE: [PHP] changing the global variables (_SERVER[HTTP_USER_AGENT])

2006-10-03 Thread Brad Fuller
PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] changing the global variables (_SERVER[HTTP_USER_AGENT]) Thanks for the reply rick. I actually want to change the user agent header in the request sent by the client. I want to send a request to the server with different user agent header

Re: [PHP] changing the global variables (_SERVER[HTTP_USER_AGENT])

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 12:43 pm, Balaji A wrote: Hi, in php.ini I have changed the register_global to On. Is it possible to change the global variable _SERVER[HTTP_USER_AGENT]? Thanks in advance.. E. You're not making sense... You want my browser to LIE to your server about what