Cannot get browscap to load on OSX no matter which version I use or where
I put it
I am trying to get the following code to run:
$browser = get_browser(null, true);
print_r($browser);
The error that I get is as follows:
Warning: get_browser() [function.get-browser]: browscap ini directive not
set in /Applications/XAMPP/xamppfiles/htdocs/series/firstfile/index.php on
line 3
I am running OSX 10.8.4 with XAMPP. The browscap info in my php.ini file
is as follows:
[browscap]
;browscap = /Applications/XAMPP/xamppfiles/etc/browscap.ini"
I have also tried the following paths:
/Macintosh HD/Applications/XAMPP/xamppfiles/etc/browscap.ini
I downloaded and placed the browscap.ini file myself into that directory
and have also tried referencing it from other locatations in case it was a
permission issue or something.
I am assuming that the problem is with how I write my path but I just cant
find a way to get XAMPP to accept it and when you go to phpinfo() it is
listed under 'core' as browscap - no value.
Obviously I have been restarting Apache etc. with each change to ensure
that the php.ini is refreshed.
All of the information I can find seem to pertain to Windows rather than
Mac so I am struggling!
No comments:
Post a Comment