PHP 4.2.1 Installation Problem?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
naveed
Forum Newbie
Posts: 2
Joined: Sun May 26, 2002 3:26 pm
Location: Canada

PHP 4.2.1 Installation Problem?

Post 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 :)
User avatar
EvilWalrus
Site Admin
Posts: 209
Joined: Thu Apr 18, 2002 3:21 pm
Location: Springmont, PA USA

Post 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...
?>
naveed
Forum Newbie
Posts: 2
Joined: Sun May 26, 2002 3:26 pm
Location: Canada

Post by naveed »

Oh... oops

Sorry about that :P
Post Reply