pasakiet lūdzu - kur šeit ir kļūda?
<?
$f=fopen("counter.dat","a+") or die("Cannot to open file");
flock($f,2);
$count=fread($f,100);
if(!IsSet($Was))
{
$Was=1;
SetCookie("Was",$Was,0x07FFFFFFF);
$REMOTE_HOST=gethostbyaddr ($REMOTE_ADDR);
if(!($HTTP_HOST===$REMOTE_HOST)) @$count=$count+1;
ftruncate($f,0);
fwrite($f,$count);
}
flock($f,3);
fclose($f);
$img = ImageCreateFromPng("PLATE.PNG");
$color = ImageColorAllocate($img, 220, 210, 60);
$x = (ImageSx($img)-6.5*strlen("$count"))/2;
ImageString($img,3,$x,9,"Visits: $count",$color");
Header("Content-type: IMAGE/PNG");
ImagePng($img);
ImageDestroy($img);
?>
man rāda sekojošu kļūdu: