Results 1 to 4 of 4

Thread: Problem with browscap

  1. #1
    Join Date
    Dec 2008
    Posts
    68

    Problem with browscap

    Hey Guys,

    I had install browscap for php on my system. But the problem is that after installing when i restart apache2 it shows me an error message "error parsing browscap.ini". Can any body tell me what does this error means? Can any body tell me what changes i have to make in order to resolve this problem? Any information on this would be appreciated.

    Thanks.

  2. #2
    Join Date
    Sep 2005
    Posts
    1,306

    Re: Problem with browscap

    Do you have register_globals set to "On"? Try $_SERVER['HTTP_USER_AGENT'].

    This variable exists independent from the browscap.ini file. You only need browscap.ini for the get_browser() function to work correctly.

    This should work: $browser = get_browser($_SERVER['HTTP_USER_AGENT']);

  3. #3
    Join Date
    Apr 2008
    Posts
    4,088

    Re: Problem with browscap

    There are also the bugs in both browscap.dll and PHP's get_browser(), which my files also support, to contend with. And of course there are always spoofed user agents. User agents that claim to be one thing, but in fact are often badly behaved bots masquerading as well behaved bots like Googlebot.

  4. #4
    Join Date
    Jan 2008
    Posts
    3,755

    Re: Problem with browscap

    Microsoft has abandoned browscap.ini as a means of browser detection in favor of more sophisticated and better methods, there are still a large number of people who continue to rely upon browscap.ini for all sorts of purposes. With the data from my database being available in so many different formats it's easy to use it in any situation where accurate user agent detection is important.

Similar Threads

  1. Sony VGNCS3 laptop 15 inch screen problem...LCD or CHIP problem?
    By Mick$Tyler in forum Hardware Peripherals
    Replies: 5
    Last Post: 31-10-2010, 06:49 AM
  2. Replies: 6
    Last Post: 27-07-2010, 12:10 AM
  3. hard disk problem, clicking sound and windows problem
    By rajat_2589 in forum Hardware Peripherals
    Replies: 1
    Last Post: 16-06-2010, 11:34 PM
  4. Replies: 4
    Last Post: 10-04-2010, 04:19 PM
  5. Replies: 1
    Last Post: 30-11-2004, 11:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,456,199.54477 seconds with 17 queries