browser.ini

[email protected] ("Liz Kimber")
Newsgroups php.general
Message-ID <[email protected]>
I wonder if someone can help me.  I downloaded browscap.ini off a site (I
forget which , but its one that others have downloaded it from as thats
where I got the URL).  I put it in /var/lib/apache/lib/ - I updated my
php.ini to reflect this, and restarted apache. So...

I used the following code out of the helpfile -
<?php
function list_array( $browser ) {
   while ( list( $key, $value ) = each( $browser ) ) {
          $str .= "<b>$key:</b> $value<br>\n";
   }
   return $str;
}
echo "$HTTP_USER_AGENT<hr>\n";
$browser = get_browser();
echo list_array( (array) $browser );
?>


So - why do I only get this output and more to the point, how can I fix it?

Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
----------------------------------------------------------------------------
----
 0:

Thanks.  I desparately want this to work.

Liz
PS - Im reasonably new and so yes its probably something real dumb.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.