.php网站在从休眠状态唤醒时崩溃

时间:2014-08-06 09:21:06

标签: php google-chrome crash

我一直在我的.php网站上工作,我注意到从休眠状态醒来后,谷歌浏览器"此页面已经崩溃了#34;屏幕出现,直到我刷新。

有人会碰巧知道我可能错过的任何明显原因吗? (尝试在网上搜索但没有运气,除了有相同问题的php论坛)

我有一种感觉可能与变量决定要加载哪个页面有关,但我不知道下一步要解决这个问题。

<?php
$tma="elements/the-mist-arcane-nav.php";
    include "elements/header.php";

    if(isset($_GET['page'])){
        switch($_GET['page']){
            case "the-mist-arcane":
                include "$tma";
                include "pages/the-mist-arcane.php";
                break;

                case "story":
                    include "$tma";
                    include "pages/the-mist-arcane/story.php";
                    break;
                case "classes":
                    include "$tma";
                    include "pages/the-mist-arcane/classes.php";
                    break;
            case "home":
                include "pages/home.php";
                break;
        }
    }else{
        include "pages/home.php";
    }

    include "elements/footer.php";

?>

由于

0 个答案:

没有答案