Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Milner  >  cacher.php.class  >  test.php  >  Download  
File: test.php
Role: ???
Content type: text/plain
Description: This file tests the class for you
Class: cacher.php.class
Author: By
Last change:
Date: 2001-10-31 07:25
Size: 472 bytes
 

Contents

Class file image Download
<?
function getmicrotime(){ 
	    list($usec, $sec) = explode(" ",microtime()); 
	    return ((float)$usec + (float)$sec); 
	    } 
	
$time_start = getmicrotime();

//begin the caching thing
include ("cacher.php.class");
$cacher = new Cacher;
$output = $cacher->cache("http://www.YourDomain.com/echo.php?edit=no", 5);
echo $output;
//end the caching thing

$time_end = getmicrotime();
$time = $time_end - $time_start;
echo "Did page in $time seconds";
?>