PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Piotr Malinski   Detector   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Detector
Detect browser plug-ins and resolution using AJAX
Author: By
Last change:
Date: 18 years ago
Size: 493 bytes
 

Contents

Class file image Download
<?PHP
IF(!is_file('xajax.inc.php'))
    {
    die(
'no xajax.inc.php');
    }
include
'plugins.php';
include
'browser_plugins.php';
include
'screen.php';
echo
'<pre>';
$x = new browser_plugins('plugins.txt');
print_r($x->get_plugins_array());

$a = new screen('screen.txt');
print_r($a->resolution());
?>
<BR><center>It's all in one page example so you probably need to refres the page to see the results. if you need all in one run try using in:memory sqlite or modify plugins.php directly...</center>