Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?php
ob_start();
$otype="image";
$lines=@file('counter');
if (!$lines) {$no=0; $nolen=1; }
else { $no=(int)$lines[0]; $nolen=strlen(trim($lines[0])); }
$handle=fopen('counter','w');
fwrite('counter',(string)++$no);
if ($otype='image') {
for ($i=0; $i<$nolen; $i++) echo '<img src="ci.php?i='.substr((string)$no,$i,1).'">');
} elseif ($otype='text') echo $no;
ob_end_flush();
?>
<?php
ob_start();
header("Expires: Thu, 20 Aug 1987 11:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", FALSE);
header("Pragma: no-cache");
$is=imagecreatefrompng("images/".$_GET['i'].".png");
$sw=imagesx($is); $sh=imagesy($is);
$id=imagecreatetruecolor($sw, $sh);
imagecopyresampled($id,$is,0,0,0,0,$sw,$sh,$sw,$sh);
header("Content-Disposition: inline");
header("Content-Type: image/png");
imagepng($id);
ob_end_flush();
?>
<?php include('counter.php'); ?>