Новичок
Покинул форум
Сообщений всего: 3
Дата рег-ции: Окт. 2011
Помог: 1 раз(а)
|
Здравствуйте. Снова учусь на примерах. На этот раз скрипт счетчика.
Спойлер (Отобразить)PHP:
скопировать код в буфер обмена
<html> <head> <title></title> </head> <body> <?PHP list($d, $total, $hits, $hosts) = explode("|", $counts); if($d != $date) { $d = $date; $hits = 0; $hosts = 0; $erase = fopen("ip.txt", w +); } { $total++; $hits++; $hosts++; } else { $total++; $hits++; } $wfile = fopen(counter .txt ); fputs($wfile, $d."|".$total."|".$hits."|".$hosts); include ("template.htm"); ?> </body> </html>
Ошибка возникает в 38-й строке
Parse error: syntax error, unexpected ')' in Z:\home\localhost\www\counter\counter.php on line 37
|