php防刷计数器

?phprequire_once(”config.php”);functioncounter(){session_start();$sql=selectcounterfromcounter;$result=@mysql_query($sql);if(!empty($result)){$row=mysql_澳门新葡亰手机版,fetch_array($result);$counter=++$row[counter];if(!$_SESSION[”counter”]){$query=updatecountersetcounter=$counter;$result=@mysql_query($query);if($result){$_SESSION[”counter”]=true;}}$counter_len=strlen($counter);for($i=0;$i$counter_len;$i++){$number=substr($counter,$i,1);if(isset($number)){echoimgsrc=”image/.$number..gif”;}}}}?<