Re: [PHP] why isn't get_browser() not working?

2001-04-30 Thread Chris Adams

On 30 Apr 2001 00:51:13 -0700, elias <[EMAIL PROTECTED]> wrote:
> hello.
> i'm trying to detect what browser version is there...i'm using get_browser()
> as it was documented:
> 

Check to see if your browscap file is being picked up - try something like this:

echo count(file(ini_get("browscap"));

If that works, you're probably the latest victim of the way get_browser() has
been fixed and rebroken in various versions and ports.

-- 
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]




Re: [PHP] why isn't get_browser() not working?

2001-04-30 Thread Joe Sheble (Wizaerd)

You have a browsecap.ini file and it is in the correct location?

At 11:04 AM 4/30/01 -0700, elias wrote:
>hello.
>i'm trying to detect what browser version is there...i'm using get_browser()
>as it was documented:
>
>
>
>$t = get_browser();
>
>var_dump($t);
>
>and all i can get like output is:
>bool(false)
>
>
>
>--
>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]


-- 
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]




RE: [PHP] why isn't get_browser() not working?

2001-04-30 Thread Mark Roedel

> -Original Message-
> From: elias [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 30, 2001 1:05 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] why isn't get_browser() not working?
> 
> 
> hello.
> i'm trying to detect what browser version is there...i'm 
> using get_browser() as it was documented:
> 
> $t = get_browser();
> 
> var_dump($t);
> 
> and all i can get like output is:
> bool(false)

According to http://php.net/manual/en/function.get-browser.php, the
get_browser() function looks up its information in a browscap.ini file.
I'd start by making sure that you actually have a browscap.ini, and that
your copy of PHP is configured properly to be able to locate it.


---
Mark Roedel ([EMAIL PROTECTED])  ||  "There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full."
 LeTourneau University  ||-- Henry Kissinger


--
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]