cvs: presentations /slides/intro count5.php
| From: | Rasmus Lerdorf | Date: | Mon, 29 Aug 2005 00:42:26 +0000 |
| Subject: | cvs: presentations /slides/intro count5.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1176@lists.php.net to get a copy of this message | ||
rasmus Sun Aug 28 20:42:26 2005 EDT
Added files:
/presentations/slides/intro count5.php
Log:
Missing slide
http://cvs.php.net/co.php/presentations/slides/intro/count5.php?r=1.1&p=1
Index: presentations/slides/intro/count5.php
+++ presentations/slides/intro/count5.php
<?php
$cnt_file = '/tmp/count5.php.cnt';;
$fp = fopen($cnt_file, 'a');
fwrite($fp,chr(65+date('H')));
fclose($fp);
$hits = file_get_contents($cnt_file);
$total = strlen($hits);
$distribution = count_chars($hits);
$distribution = array_slice($distribution,65,24);
require 'Image/Graph/Simple.php';
$Graph = Image_Graph_Simple::factory(
800, 600, 'Image_Graph_Plot_Smoothed_Area', $distribution,
'Hits per Hour', 'gray', 'blue@0.5',
array('/usr/share/fonts/Verdana.ttf',12)
);
$Graph->done();
?>