Re: [PHP4BETA] get_browser() still doesn't work
| From: | php at home dot uh dot nu | Date: | Thu, 11 May 2000 18:23:15 +0000 |
| Subject: | Re: [PHP4BETA] get_browser() still doesn't work | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14860@lists.php.net to get a copy of this message | ||
http://www.cyscape.com/browscap/
Walt
>
> Where did you get the browscap.ini?
>
> At 11:52 10.5.2000 -0700, php@home.uh.nu wrote the following:
> --------------------------------------------------------------
> >Hi folks,
> > get_browser() still doesn't work in RC2. I'm hitting a test script with IE
> > 5.0
> >and I get nothing in the $browser object/array. I have the latest and
> >greatest browsecap.ini file and my php.ini file points to it. I checked
> >the HTTP_USER_AGENT output and there is a match for it in the browsecap.ini
> >file, but get_browser still fails. Any ideas?
> >
> ><?php
> > function list_array ($array)
> > {
> > while (list ($key, $value) = each ($array))
> > {
> > $str .= "<b>$key:</b> $value<br>\n";
> > }
> >
> > return $str;
> >}
> >
> >echo "$HTTP_USER_AGENT<hr>\n";
> >$browser = get_browser($HTTP_USER_AGENT);
> >echo list_array ((array) $browser);
> >
> >echo "browser = $browser->browser<br>\n";
> >?>
> >
> >Walt
> >
> >--
> >PHP 4.0 Beta Mailing List
> ><http://www.php.net/version4/>
> >To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> >For additional commands, e-mail: php4beta-help@lists.php.net
> >To contact the list administrators, e-mail: php4beta-admin@lists.php.net
> ------end of quote------
>
>
> ____________________________________________________________
> Cynic:
>
> A member of a group of ancient Greek philosophers who taught
> that virtue constitutes happiness and that self control is
> the essential part of virtue.
>
> cynic@mail.cz
> ICQ: 2808 2505
>
>
>
>
>