Re: [PHP4BETA] get_browser() still doesn't work

From: Date: Fri, 12 May 2000 06:31:49 +0000
Subject: Re: [PHP4BETA] get_browser() still doesn't work
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-14873@lists.php.net to get a copy of this message
Hi all, I downloaded browscap.ini from cyscape.com and installed on my web server which use PHP4RC1. When i start apache, i get this in the error_log : PHP: Error parsing /usr/local/lib/browscap.ini on line 6300 PHP: Error parsing /usr/local/lib/browscap.ini on line 6300 [Fri May 12 08:43:06 2000] [notice] Apache/1.3.12 (Unix) ApacheJServ/1.1 PHP/4.0RC1 mod_ssl/2.6.2 OpenSSL/0.9.5 configured -- resuming normal operations this was because there was no eol at the end of the file, so i put a new line at the end of the file : [Fri May 12 08:50:18 2000] [notice] caught SIGTERM, shutting down [Fri May 12 08:50:23 2000] [notice] Apache/1.3.12 (Unix) ApacheJServ/1.1 PHP/4.0RC1 mod_ssl/2.6.2 OpenSSL/0.9.5 configured -- resuming normal operations no error from php, but get browser still not work ! i get this from the example of the manual : Mozilla/4.7 [fr] (X11; I; Linux 2.2.14-15mdk i686)<hr> <b>0:</b> <br> the file browscap.ini is in dos format, i put it in unix format. i get no error from php at apache start, but get browser still not work ! any help ? ************************************** * POZZO Ange-Michel * Administrateur - Developeur * http://www.zonecommerce.com ************************************** Le jeu, 11 mai 2000, php@home.uh.nu a écrit : > 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

« previous php.version4 (#14873) next »