PX : code

simple image counter by ferran
Download this code


<?
// Coded BY KeMP
//BY KeMPiSoFt Solutions
//www.kempisoft.com

    $desc = fopen(\"cont.dat\",\"r\");
    while (!feof($desc))
    {
        $num = fgets($desc, 256);
        $lon = strlen($num);
        for ($i = 1; $i <= $lon ; $i++) {
        $numero=substr($num,$i-1,1);
        for ($a = 0; $a <= 9 ; $a++) {
            if ($numero == $a) {
        ?>
        <img border=\"0\" src=\"<? echo $numero; ?>.GIF\" width=\"17\" height=\"19\" alt=\"<? echo $numero; ?>\">
        <?
}
}
    }
        $num++;
    }
    fclose ($desc);
    $desc2 = fopen(\"cont.dat\",\"w\");
    fwrite($desc2,$num);
    fclose ($desc2);
?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.