Login   Register  
PHP Classes
elePHPant
Icontem

File: server-side-test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Raul Molnar  >  PHP Server and Browser Cache  >  server-side-test.php  >  Download  
File: server-side-test.php
Role: Auxiliary script
Content type: text/plain
Description: Server side test benchmark
Class: PHP Server and Browser Cache
Cache pages on the server and on the browser side
Author: By
Last change:
Date: 1 year ago
Size: 335 bytes
 

Contents

Class file image Download
<?php

//first time will be some slow because is generated first time, but next times will be much faster

$s=microtime(true);
$full_path="http://".$_SERVER['SERVER_NAME']."/cache"// you should use your own path here
$string=file_get_contents($full_path."/demo.php");
$e=microtime(true);

echo 
ceil(1000*($e-$s)). "ms"

?>