okey hvad nu
jeg for en fejlParse error: parse error, unexpected T_DNUMBER in c:\programmer\apache group\apache\htdocs\my_home\counter_func.php on line 18
til mit script hvad gør jeg forkert
<html>
<head>
<title>counter</title>
</head>
<body>
<?php
#counter_func.php
#function to increment counter using a fil funtion counter()
{
$counter_file="counter.txt";
if (fil_exits($counter_file))
{
$fil_op=fopen($counter_file."r+");
flock($fil_op,2);
$count=fgets($fil_op.4);
$count++;
rewind($fil_op);
fputs($fil_op,$count,4);
flock($fil_op,3);
fclose($fil_op);
echo"$count";
}
else
{$fil_op= fopen($counter_file,"w");
$count="1";
flock($fil_op,2);
fputs(fil_op,$count,4);
flock($fil_op,3);
fclose($fil_op);
echo count;
}}
?>
</body>
</html>
