I did a search here on "browscap ini directive not set" and apparently I'm the first person to have this problem.

Anyone know the solution? The browser checking worked fine for months, but I recently re-installed php and now it displays the error message.

What is meant by "directive" ? The .ini file is there. I've even placed the .ini file in multiple locations.

    What OS is your server running?

    As far as the 'directive' it's talking about, check in your php.ini file for a 'browscap' directive. Here's the section in the original php.ini:

    [browscap]
    ;browscap = extra/browscap.ini

    All you have to do is uncomment that line and set it to the correct path (e.g. c:\windows\system32\wherever-this-file-is\ - I can't remember where it is at the moment).

      5 days later

      Windows Server 2003.

      I'll take a look at it.

        Write a Reply...