亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        ECSHOP安裝數(shù)據(jù)庫(kù)失敗date_default_timezone_get()問(wèn)題

        字號(hào):


            今天在倒騰ECSHOP時(shí)遇到的問(wèn)題,以向?qū)J桨惭b時(shí)遇到具體的PHP警告如下
            Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in D:wwwrootshopuploadinstallincludeslib_installer.php on line 223
            很明顯是由于PHP默認(rèn)的時(shí)間區(qū)域設(shè)置問(wèn)題導(dǎo)致的警告,本來(lái)也沒(méi)什么,不過(guò)這個(gè)警告最后還是給我?guī)?lái)了麻煩,主要是數(shù)據(jù)庫(kù)那段過(guò)不去,不得已,只有自己動(dòng)手修改了,這里有兩種辦法供大家參考:
            1. 修改installincludeslib_installer.php文件。在這個(gè)文件頂部
            代碼如下:
            date_default_timezone_set ('Asia/Shanghai');
            這是個(gè)臨時(shí)的解決辦法,可以幫你成功安裝數(shù)據(jù)庫(kù),長(zhǎng)久之計(jì)還是要看方法2。
            2. 修改PHP配置文件。如果你服務(wù)器的主要時(shí)區(qū)是亞洲上海,那么修改這里是比較妥當(dāng)?shù)?,?dāng)然更穩(wěn)妥的辦法是通過(guò).htaccess導(dǎo)入PHP設(shè)置。
            打開(kāi)PHP.INI大概在958找到; date.timezone =去掉前面的注釋;號(hào),然后改成date.timezone =Asia/Shanghai,保存配置文件,重啟你的服務(wù)器。
            好的,這個(gè)問(wèn)題也就這樣很好的解決了。