PHP Classes

File: test.php

Recommend this page to a friend!
  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: 23 years ago
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"; ?>