include ("src/jpgraph.php")裡所說的jpgraph.php檔案放在C:\Jpgraph\src\jpgraph裡.
運行時顯示錯誤:
Warning: include(src/jpgraph.php): failed to open stream: No such file or directory in C:\Program Files (x86)\EasyPHP-12.1\www\formulaire\reponse_formulaire_systemB_1.php on line 30
Warning: include(): Failed opening 'src/jpgraph.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files (x86)\EasyPHP-12.1\www\formulaire\reponse_formulaire_systemB_1.php on line 30
Warning: include(src/jpgraph_bar.php): failed to open stream: No such file or directory in C:\Program Files (x86)\EasyPHP-12.1\www\formulaire\reponse_formulaire_systemB_1.php on line 31
Warning: include(): Failed opening 'src/jpgraph_bar.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files (x86)\EasyPHP-12.1\www\formulaire\reponse_formulaire_systemB_1.php on line 31
Fatal error: Class 'Graph' not found in C:\Program Files (x86)\EasyPHP-12.1\www\formulaire\reponse_formulaire_systemB_1.php on line 33
**************************************************************
找了不少材料說要在php.ini裡改,但是怎麼改都是出錯,請問這裡到底怎麼寫呢?
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; Windows: "\path1;\path2"
;include_path = ".;${path}\php\includes"
多謝各位大神的指點.
回複討論(解決方案)
如果
include ("src/jpgraph.php");
那麼 jpgraph.php 應在目前的目錄的 src 子目錄中
如果
include ("src/jpgraph.php");
那麼 jpgraph.php 應在目前的目錄的 src 子目錄中
謝謝你的回答啊,我想問的是php.ini裡如何改啊?
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; Windows: "\path1;\path2"
;include_path = ".;${path}\php\includes"
這裡要如何寫?