2
Contributors
4
Replies
12
Views
4 Years
Discussion Span
Last Post by aVar++
0

Dude,

I thought browserscap is just for IIS? I am not sure, but can you double check and make sure you've got the right version for your server..

0

No, on the xampp server it is used for detecting the browser. But the forums say I need to update it for PHP however it doesn't do anything when I update it.

0

ok, now I know what you are talking about..

open xampp/php/php.ini file
look for

[browscap]
 ; http://php.net/browscap
 ;browscap = ""

change it to

[browscap]
; http://php.net/browscap
browscap = "C:\xampp\php\extras\browscap.ini"

The above is an assumed location of your xampp.
Place the browscap.ini inside the xampp/php/extras/ directory

Restart you xampp
clear you browsers history
run your php script to test browscap

0

I have already done that, it still shows 'Default Browser' instead of 'chrome' or 'morzilla'.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.