Re: [PHP] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread nayco

with some environnement variable 
er, i'm going to take a look, wait.


(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr


- Original Message -
From: Zhu George-CZZ010 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 5:35 PM
Subject: [PHP] Is it possible to detect the Browser type/version in PHP?


 Hi,

   I once had the Javascript codes to detect the browser type/version (but
unfortunately, I lost the codes), does anyone have the Javascipt code? or
can PHP do the same job (how?)

 Thank you very much in advance.

 --
 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] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread B. van Ouwerkerk

Yes. STFW -- www.php.net type detect browser in the searchbox -- click 
pulldownbox -- select online documentation and click on the little arrow..

http://www.php.net/manual/en/function.get-browser.php
http://www.php.net/manual/en/language.variables.predefined.php

Next time you can search the online manual on your own :-)

Bye,


B.


Hi,

   I once had the Javascript codes to detect the browser type/version (but 
 unfortunately, I lost the codes), does anyone have the Javascipt code? or 
 can PHP do the same job (how?)


-- 
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] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread Brian Paulson

Here is something that I use and works good

?
$Browser_Type  =  strtok($HTTP_USER_AGENT,  /); 
if(ereg( MSIE,  $HTTP_USER_AGENT))   
{   

} 
elseif(ereg( Mozilla,  $HTTP_USER_AGENT))
{ 

} 
else // I use this to catch Search Robots
{  

}
?

Thank You
Brian Paulson
Sr. Web Developer
The Pueblo Chieftain Online
[EMAIL PROTECTED]
http://www.chieftain.com 


 -Original Message-
 From: nayco [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, September 11, 2001 9:48 AM
 To: Zhu George-CZZ010; [EMAIL PROTECTED]
 Subject: Re: [PHP] Is it possible to detect the Browser 
 type/version in PHP?
 
 
 with some environnement variable 
 er, i'm going to take a look, wait.
 
 
 (°-Nayco,
 //\[EMAIL PROTECTED]
 v_/_ http://nayco.free.fr
 
 
 - Original Message -
 From: Zhu George-CZZ010 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 11, 2001 5:35 PM
 Subject: [PHP] Is it possible to detect the Browser 
 type/version in PHP?
 
 
  Hi,
 
I once had the Javascript codes to detect the browser 
 type/version 
  (but
 unfortunately, I lost the codes), does anyone have the 
 Javascipt code? or can PHP do the same job (how?)
 
  Thank you very much in advance.
 
  --
  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]
 
 
 


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