Page 1 of 1

PHP 4.2.1 Installation Problem?

Posted: Sun May 26, 2002 3:26 pm
by naveed
Hi, I'm having problems upgrading to PHP 4.2.1. I'm currently running Apache 2.0.36 on Windows XP, and I upgraded using the binary installer found at PHP.net.

Everything seems to work fine, but I've noticed that I now have to type $HTTP_SERVER_VARS['HTTP_USER_AGENT'] to get the visitor's browser, whereas before I upgraded, just $HTTP_USER_AGENT would do.

I didn't find anything in the manual that mentioned anything about this little qwerk. I'm thinking it might have something to do with one of the .ini or .dll files. I have php.ini and browscap.ini located in my C:\Windows\ directory, and php4ts.dll and msvcrt.dll located C:\Windows\System. Is there anything missing? Do I have to configure anything? Or is the problem related to something completely different?

Any help would be appreciated :)

Posted: Sun May 26, 2002 3:59 pm
by EvilWalrus
That was a new changeover for the 4.1.x and 4.2.x releases... the new superglobals and whatnot... to access your variable now, it'd be:

Code: Select all

<?php
echo $_SERVERї'HTTP_USRE_AGENT'];
?>
їphp]


read up on the chages in the php.net changelog...
?>

Posted: Sun May 26, 2002 5:34 pm
by naveed
Oh... oops

Sorry about that :P