"Y") { $Count=substr($txt[$i],strrpos($txt[$i],":")+1)+1; $txt[$i]=substr($txt[$i],0,strrpos($txt[$i],":")+1).$Count; // } // if cookie // else { // $Count=substr($txt[$i],strrpos($txt[$i],":")+1); // $txt[$i]=substr($txt[$i],0,strrpos($txt[$i],":")+1).$Count; // } } if(strlen($txt[$i])>1) { $tmp=$tmp.$txt[$i]."\n"; } }//for loop if(!$Counted_OK) { $Count=1; $tmp=$tmp.$page.$Count."\n"; } } else { $Count=1; $tmp=$tmp.$page.$Count."\n"; } $fp=fopen("counter.txt","w"); fwrite($fp,$tmp); fclose($fp); echo '
'.$Count.'
'; // echo '
ͺ ='.$filename.'
'; ?>