include 可以換成require_once 嗎?
???????$file?=?IMOOC.$class.'.php'; //???????判斷php文件是否存在 ????????if(is_file($file)){ ????????????include?$file; ????????????self::$classMap[$class]?=?$class;
???????$file?=?IMOOC.$class.'.php'; //???????判斷php文件是否存在 ????????if(is_file($file)){ ????????????include?$file; ????????????self::$classMap[$class]?=?$class;
2019-03-23
舉報
2019-05-24
加載失敗,include()會產生一個警告,而require()則導致一個致命的錯誤,代碼停止運行