Re: Re: Having trouble using get_browser() function
| From: | Mark | Date: | Wed, 03 Oct 2001 17:26:17 +0000 |
| Subject: | Re: Re: Having trouble using get_browser() function | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69797@lists.php.net to get a copy of this message | ||
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" <ceo@l-i-e.com> wrote in message
>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 richard@zend.com address is an endangered species -- Use
>> ceo@l-i-e.com
>> 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 <imilanezc@hotmail.com>
>> Newsgroups: php.general
>> To: <php-general@lists.php.net>
>> 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, maggelet@mminternet.com on 10/03/2001