I downloaded a browscap.ini file from browserhawk or something recently that php choked on because of an error on the last line. I deleted the line and it worked fine.
If you're using the apache module you can go: 'apachectl configtest' and if there's a problem with the file it will let you know. On Wed, 3 Oct 2001 11:02:16 -0500, Iván Milanez Castellanos wrote: >Yeap I did download a browscap.ini from a web site, and yes I am >aware of >the functionality of the $HTTP_USER_AGENT variable, and yes I am >aware of >the fact that the browscap.ini file tells you what a browser is >capable of >hence the name BrowsCap (Browser Capabilities). > >The question was how do I get it to work properly, for even though I >have >installed it in the directory where php.ini says it should be and >have >uncommented the line pertaining to browscap.ini in the php.ini file >I still >can't get it to work. > >TIA > >Iván Milanez > >"Richard Lynch" <[EMAIL PROTECTED]> wrote in message >04c201c14bc4$6943aa80$c801a8c0@Lynchux100">news:04c201c14bc4$6943aa80$c801a8c0@Lynchux100... >> #1. Did you download a nice big browscap.ini instead of that >>empty one >that >> comes with PHP?... >> >> #2. Are you aware that $HTTP_USER_AGENT has the Browser in it, >>without >the >> complications of get_browser and browscap.ini? >> >> #3. You do realize that get_browser() only tells you what a >>browser is >> theoretically capable of, not what the user has enabled/disabled... >> >> -- >> WARNING [EMAIL PROTECTED] address is an endangered species -- Use >> [EMAIL PROTECTED] >> Wanna help me out? Like Music? Buy a CD: http://l-i- >>e.com/artists.htm >> Volunteer a little time: http://chatmusic.com/volunteer.htm >> ----- Original Message ----- >> From: IVáN Milanez Castellanos <[EMAIL PROTECTED]> >> Newsgroups: php.general >> To: <[EMAIL PROTECTED]> >> Sent: Monday, October 01, 2001 7:21 PM >> Subject: Having trouble using get_browser() function >> >> >> > Hi, does anyone here know how to correctly configure php.ini to >>be able >to >> > use browscap.ini in linux so that I can get the get_browser() >>function >to >> > work properly, I need it because I'm building a statlog from >>scratch for >> my >> > web site. >> > >> > Any help will be apreciated. >> > >> > Iván >> > >> > P.S. Sorry about my spelling but english is not my native >>language. >> > >> > >> > > > -- Mark, [EMAIL PROTECTED] on 10/03/2001 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]