php函數代碼重用問題
set_include_path(get_include_path().PATH_SEPARATOR.'czy'); set_include_path(get_include_path().PATH_SEPARATOR.'bbs'); include ('newfile39.php'); include ('newfile.php'); 只有本文件夾下的函數被調用,bbs文件夾下的文件沒有引入到本文件中。 運行顯示: Fatal error: Call to undefined function test() in D:\phpStudy\WWW\czy\newfile44.php 求解答!
2019-02-21
2018-10-27
試一下
set_include_path(get_include_path().PATH_SEPARATOR.'./bbs');
2017-12-24
你的bbs文件夾下的文件沒有引入吧