Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   Get_browser() (http://www.programmingforums.org/showthread.php?t=1069)

Ooble Nov 8th, 2004 10:09 AM

I'm having a bit of trouble getting the get_browser() to work. A warning, "get_browser() [function.get-browser]: browscap ini directive not set", is returned, even though there is a browscap.ini file in the PHP directory from www.garykeith.com, and php.ini says "browscap = browscap.ini". I've tried various arrangements, with the full path (E:\PHP\browscap.ini), both with forward- and back-slashes, on its own, with a single forward-slash at the front ("/browscap.ini"), all with and without surrounding quotes. I'm officially stuck - can anyone help?

I'm running PHP v5.0.2.

Pizentios Nov 8th, 2004 11:21 AM

my guess is that the problem is in the php.ini file.

what directory is your browscap.ini located in? Where does phpinfo() report it being? Do these two match?

kurifu Nov 8th, 2004 12:21 PM

Mym guess would have to be the same thing, could you run php_info() in a borwser on a page (with nothing else being called) and maybe provide a link to this page so we can view a bit more information abou your PHP Installation on php.ini file?

Ooble Nov 8th, 2004 5:38 PM

Both php.ini and browscap.ini are located in E:\PHP. My PHP Info page is at http://80.1.252.217/phpinfo.php - take a look. Currently, in php.ini, browscap = browscap.ini.

Pizentios Nov 8th, 2004 5:57 PM

i see the value "no value in browsecap right now, can sombody else verify?

Ooble Nov 9th, 2004 6:42 PM

I see "no value" as well, I'm afraid. This officially sucks.


All times are GMT -5. The time now is 12:54 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC