PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Sergey Ivanov  >  Client info  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Client info
Retrieve information about the user browser
Author: By
Last change:
Date: 14 years ago
Size: 1,172 bytes


Class file image Download
  <title>Client info class example</title>

<body bgcolor><br><br><center>

require "client_info.class.php";
$user_agent=new client_info;

$client_data = $user_agent->parse_user_agent($_GET['uagent'] ? $_GET['uagent'] : $_SERVER['HTTP_USER_AGENT']);
$client_data['browser'] = "unknown browser"; }
$client_data['system'] = "unknown system"; }
//print $client_data['browser'] . " " . $client_data['browser_version'];
//print $client_data['system'];

<table border=1>
 <td><b>Operation System</b></td><td><b>Browser</b></td>
 <td><? print $client_data['system'];?></td><td><? print $client_data['browser']." ".$client_data['browser_version'];?></td>
 <td><img src="images/large/icon_<? print $client_data['system_icon'];?>" align="center" alt="system_icon"></td><td><img src="images/large/icon_<? print $client_data['browser_icon'];?>" align="center" alt="browser_icon"></td>


For more information send a message to info at phpclasses dot org.