- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
<?
if (!file_exists("count.txt")) {
$fp = fopen("count.txt","w");
fwrite($fp,0);
fclose($fp);
}
$fp = fopen("count.txt","r");
$count = fread($fp,10);
fclose($fp);
$visitor = $_COOKIE['visitor'];
if (!isset($visitor)) {
setcookie("visitor", "yes");
$count++;
$fp = fopen("count.txt","w");
fwrite($fp,$count);
fclose($fp);
}
$string = strlen($count);
for ($search=0;$search<$string;$search++) {
$digit = substr($count,$search,1);
$count_graphic .= "<img src=\"img/$digit.gif\">";
}
?>
demotivator 15.02.2012 15:03 # 0
demotivator 15.02.2012 15:03 # 0
Tony_ 15.02.2012 15:07 # 0
Крутятская книга для новичков