微擎安裝后PHP Warning:require(./framework/bootstrap.inc.php):failed to的錯(cuò)誤

2015-10-28 21:10:59來(lái)源:威易網(wǎng)作者:小易

微擎0.7版成功安裝后,訪問(wèn)首頁(yè)面,發(fā)現(xiàn)出現(xiàn)如下錯(cuò)誤:PHP Warning:  require(./framework/bootstrap.inc.php): failed to open stream: No such file or directory in D:weiqingindex.php on line 6

微擎0.7版成功安裝后,訪問(wèn)首頁(yè)面,發(fā)現(xiàn)出現(xiàn)如下錯(cuò)誤:

PHP Warning:  require(./framework/bootstrap.inc.php): failed to open stream: No such file or directory in D:weiqingindex.php on line 6
PHP Fatal error:  require(): Failed opening required ‘./framework/bootstrap.inc.php‘ (include_path=‘.;C:phppear‘) in D:weiqingwx.app.hi.cnindex.php on line 6

錯(cuò)誤看起來(lái)找不到bootstrap.inc.php文件,實(shí)際上文件是正常存在的,打開(kāi)index.php一看,錯(cuò)誤代碼行為:

require ‘./framework/bootstrap.inc.php‘;

解決辦法很簡(jiǎn)單,去掉那個(gè)“.”,將代碼改成:

require ‘/framework/bootstrap.inc.php‘;

就行了。

關(guān)鍵詞:微擎微信
推薦文章