PHP Classes

File: sample_page_to_analyse.php

Recommend this page to a friend!
  Classes of Rodney Greenfield   designer_stats   sample_page_to_analyse.php   Download  
File: sample_page_to_analyse.php
Role: Example script
Content type: text/plain
Description: Detect this
Class: designer_stats
Using client & server tech for browser detection
Author: By
Last change:
Date: 21 years ago
Size: 730 bytes
 

Contents

Class file image Download
<?
// Session handling is required.
session_start();
include(
"detect.class.php");
$sniff = new detection();
// Parameter settings / config
$dbtype = "mysql";
$dbhost = "localhost";
$dbuname = "user";
$dbpass = "password";
$dbname = "db";
$useBrowscap = 0;
$adodbInc = 0;
$sniff->start($useBrowscap,$dbtype,$dbhost,$dbuname,$dbpass,$dbname,$adodbInc);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Any page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Any webpage, but I have it on just the index.<br>
Your standard page content.<br>
<br>
<a href="sample_traffic_summary.php?">View Traffic</a>
</body>
</html>