标题:Fatal error:Maximum execution time of 30 seconds exceeded in C:\wamp\w ...
只看楼主
szchina
Rank: 1
等 级:新手上路
帖 子:99
专家分:0
注 册:2012-7-31
 问题点数:0 回复次数:1 
Fatal error:Maximum execution time of 30 seconds exceeded in C:\wamp\www\text\in
Fatal error:Maximum execution time of 30 seconds exceeded in C:\wamp\www\text\index.php on line18

<!doctype html>
<html>
<head><title>counter</title></head>

<?php
    @$f=fopen("piccounter.txt", "r") or die("Unable to open file!");
    $num=fread($f, filesize("piccounter.txt"));
    $num++;
    fclose($f);
    $fw=fopen("piccounter.txt", "w");
    fwrite($fw, $num);
    // echo $num;
    while (!feof($fw)) {
        # code...
        $array_count=1;
        $current_number=fgetc($fw);
        $counter_array[$array_count]=$current_number;
        $array_elements=count($counter_array);              //这里是18行
        $array_count=$array_count+1;
    }

    for($array_id=1;$array_id<$array_elements;$array_id++){
        echo "<img src=\"$counter_array[$array_id].jpg\" \ >";
    }
    fclose($fw);
?>
<body>

</body>
</html>
搜索更多相关主题的帖子: counter seconds execution html 
2013-03-07 10:01
szchina
Rank: 1
等 级:新手上路
帖 子:99
专家分:0
注 册:2012-7-31
得分:0 
回复 楼主 szchina
该问题已经在其他论坛解决!————楼主回复
2013-03-07 10:19



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-399976-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.278503 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved