jpgraph路径问题.
Jun 23, 2016 pm 02:02 PM 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"
这里要如何写?

Artikel Panas

Alat panas Tag

Artikel Panas

Tag artikel panas

Notepad++7.3.1
Editor kod yang mudah digunakan dan percuma

SublimeText3 versi Cina
Versi Cina, sangat mudah digunakan

Hantar Studio 13.0.1
Persekitaran pembangunan bersepadu PHP yang berkuasa

Dreamweaver CS6
Alat pembangunan web visual

SublimeText3 versi Mac
Perisian penyuntingan kod peringkat Tuhan (SublimeText3)

Topik panas

11 skrip pemendek URL terbaik PHP (percuma dan premium)

Bekerja dengan Data Sesi Flash di Laravel

Respons HTTP yang dipermudahkan dalam ujian Laravel

Bina aplikasi React dengan hujung belakang Laravel: Bahagian 2, React

Curl dalam PHP: Cara Menggunakan Pelanjutan PHP Curl dalam API REST

12 skrip sembang php terbaik di codecanyon
