![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() |
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?
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#3 |
|
Expert Programmer
|
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?
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
|
|
#4 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|