Closed Thread Icon

Topic awaiting preservation: $HTTP_USER_AGENT variable undefined? Pages that link to <a href="https://ozoneasylum.com/backlink?for=12462" title="Pages that link to Topic awaiting preservation: $HTTP_USER_AGENT variable undefined?" rel="nofollow" >Topic awaiting preservation: $HTTP_USER_AGENT variable undefined?\

 
Author Thread
kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 10-06-2002 21:16

After re-installing Windows yesterday I just downloaded Apache and PHP to set up my little developing environment. And without having altered any of my codes, I'm now getting this strange error message:

quote:
Notice: Undefined variable: HTTP_USER_AGENT in f:\webdesign\erik-enseleit.de\index.php on line 9

I'm doing some some browser detecting there, it has always been working and still does on my webspace. How could $HTTP_USER_AGENT be not defined? I don't have any anti-virus or firewall software installed yet, so it can't be blocking anything if that was possible...

Does anyone have an idea what I could be doing wrong?

kuckus (cell #282)

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 10-06-2002 23:52

Did you check to see if PHP is registering it's global variables?...

Run phpInfo() or have a peek in da php.ini file in your windows root directory.

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 10-07-2002 08:44

Aaah, so that was the problem. Now it's working again.

Thanks a lot, Drac!

kuckus (cell #282)

« BackwardsOnwards »

Show Forum Drop Down Menu