微擎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‘;
就行了。