Re: [PHP4BETA] get_browser() still doesn't work
| From: | php at home dot uh dot nu | Date: | Fri, 12 May 2000 03:10:41 +0000 |
| Subject: | Re: [PHP4BETA] get_browser() still doesn't work | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14868@lists.php.net to get a copy of this message | ||
I dunno. I was hoping they would fix this, because its definetly broken.
I can't even compile apache right now either with RC2.
Walt
> That is a great site. What do I do? I am a linux user running
> apache? I wrote my own function that evaluates
> $HTTP_USER_AGENT but I would rather go back to using
> get_browser().
>
> Is there any news as to how long it will be before get_browser in
> php4 is fixed?
>
> David
>
> On 11 May 2000, at 11:23, php@home.uh.nu wrote:
>
> > 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
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > 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
> >
> >
>
>
> ------------------------------
> David W. Robinson, Ph.D.
> Research Assistant Professor
> Physiology and Pharmacology, L334
> Oregon Health Sciences University
> 3181 SW Sam Jackson Park Road
> Portland OR 97201
>
> dwrobinson@socalled.com
> ------------------------------
>