重置php计数器在chrome中不起作用

重置php计数器在chrome中不起作用,php,counter,reset,Php,Counter,Reset,我在后台统计我网站各页面的点击次数,可以在IE中重置,但在Chrome中重置按钮没有响应 此处使用的按钮代码: <input type="submit" name="Submit" value="reset counter" onclick="document.location.href('mailing_stats.php?req=reset_counter4&ev=<?=$getrecent?>&wv=<?=$getrecent2?>')

我在后台统计我网站各页面的点击次数,可以在IE中重置,但在Chrome中重置按钮没有响应

此处使用的按钮代码:

    <input type="submit" name="Submit" value="reset counter" onclick="document.location.href('mailing_stats.php?req=reset_counter4&ev=<?=$getrecent?>&wv=<?=$getrecent2?>');" />
以下是功能:

     case "reset_counter4":
            $add_current = date('d-m-Y').": e-views: ".$_GET[ev]." - w-views: ".$_GET[wv];

            $handle2=fopen("count_history4.txt","a");
            //input new value
            fputs($handle2,$add_current . "\n\n");
            fclose($handle2);

            $handlee=fopen("../count_email4.txt","w");
            fputs($handlee,"0");
            fclose($handlee);

            $handlew=fopen("../count_web4.txt","w");
            fputs($handlew,"0");
            fclose($handlew);

    ?>

    <script type="text/javascript">
    document.location.reload('mailing_stats.php')
    </script>

你必须先检查php代码是否在php.ini中启用了速记功能,然后告诉我们你使用的是哪个php版本??他使用速记方式回显变量的方式。令人遗憾的是,新代码没有做任何更改,我使用的是PHP5.3.3
 mailing_stats.php?req=reset_counter4&ev=<?php echo $getrecent; ?>&wv=<?php echo $getrecent2; ?>');" />