phpbar.de logo

Mailinglisten-Archive

[php] Browser-Erkennung

[php] Browser-Erkennung

Cyrill Schumacher webmasterbhs_(at)_bluewin.de
Fri, 23 Jun 2000 11:12:06 +0200


get_browser();

Example 1. Get_browser() example

  1 
  2 <?php
  3 function list_array ($array) {
  4     while (list ($key, $value) = each ($array)) {
  5         $str .= "<b>$key:</b> $value<br>\n";
  6     }
  7     return $str;
  8 }
  9 echo "$HTTP_USER_AGENT<hr>\n";
 10 $browser = get_browser();
 11 echo list_array ((array) $browser);
 12 ?>
 13       
 
manual lesen :-)

kiri



php::bar PHP Wiki   -   Listenarchive