RE: [PHP] get_browser() - browscap.ini for Linux

2004-03-11 Thread XMG
On Wed, 10 Mar 2004, Shaunak Kashyap wrote:

 I downloaded the file from www.GaryKeith.com and set up the php.ini entry to
 point to it. Then I called get_browser() and it returned nothing.
 
 Once again, my configuration is as under:
 
 OS: Linux Red Hat Enterprise WS
 PHP: 4.2.3
 Web server: Apache 1.3.29
 
 Have you tried using PHP's get_browser function? If that worked for you,
 could you please let me know what your system configuration is?
 
 Thanks,
 
 Shaunak

The following code using get_browser() (in this
case to detect Netscape version 4, or earlier) 
works for me. Don't know that it is an example
of 'elegant' coding, but it does work. :) 


$browser = get_browser();
$isNS4 = false;

if ($browser-browser == 'Netscape') {
  if ($browser-majorver = 4)   {
$isNS4 = true;
  }
}


lk
www.theNewAgeSite.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Shaunak Kashyap
I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's
get_browser function which needs a file called browscap.ini on the server.
It *seems* that there is no such file available for Linux (I have checked
the manual and the link that it mentions).

Can anyone point me to a source for a working, up-to-date Linux version of
browscap.ini

Thanks in advance,

Shaunak

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Chris W. Parker
Shaunak Kashyap mailto:[EMAIL PROTECTED]
on Wednesday, March 10, 2004 11:21 AM said:

 I am running Apache 1.3.29 on a Linux platform. I am trying to use
 PHP's get_browser function which needs a file called browscap.ini on
 the server. It *seems* that there is no such file available for Linux
 (I have checked the manual and the link that it mentions).
 
 Can anyone point me to a source for a working, up-to-date Linux
 version of browscap.ini

i'm just guessing with this but are you sure you need a linux version
of browscap.ini? afaik it's just a plain text file.



chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread James Kaufman
On Wed, Mar 10, 2004 at 02:21:19PM -0500, Shaunak Kashyap wrote:
 I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's
 get_browser function which needs a file called browscap.ini on the server.
 It *seems* that there is no such file available for Linux (I have checked
 the manual and the link that it mentions).
 
 Can anyone point me to a source for a working, up-to-date Linux version of
 browscap.ini
 
 Thanks in advance,
 
 Shaunak
 

I pick up mine from http://www.GaryKeith.com and use it fine under Linux.

-- 
Jim Kaufman
Linux Evangelist
public key 0x6D802619
http://www.linuxforbusiness.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Shaunak Kashyap
Thanks for the prompt reply.

I downloaded the file from www.GaryKeith.com and set up the php.ini entry to
point to it. Then I called get_browser() and it returned nothing.

Once again, my configuration is as under:

OS: Linux Red Hat Enterprise WS
PHP: 4.2.3
Web server: Apache 1.3.29

Have you tried using PHP's get_browser function? If that worked for you,
could you please let me know what your system configuration is?

Thanks,

Shaunak

 -Original Message-
 From: James Kaufman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 3:31 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] get_browser() - browscap.ini for Linux


 On Wed, Mar 10, 2004 at 02:21:19PM -0500, Shaunak Kashyap wrote:
  I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's
  get_browser function which needs a file called browscap.ini on
 the server.
  It *seems* that there is no such file available for Linux (I
 have checked
  the manual and the link that it mentions).
 
  Can anyone point me to a source for a working, up-to-date Linux
 version of
  browscap.ini
 
  Thanks in advance,
 
  Shaunak
 

 I pick up mine from http://www.GaryKeith.com and use it fine under Linux.

 --
 Jim Kaufman
 Linux Evangelist
 public key 0x6D802619
 http://www.linuxforbusiness.net

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php