菜鸟提问:jpgraph的路径问题.
本帖最后由 davenport 于 2013-03-12 08:34:30 编辑 代码如下:
$value)
echo $cate: $value
;;
}else
echo ‘没安装gd扩展’;
?>
setscale(textlin);
//$theme_class=defaulttheme;
//$graph->settheme(new $theme_class());
// set major and minor tick positions manually
$graph->yaxis->settickpositions(array(0,30,60,90,120,150), array(15,45,75,105,135));
$graph->setbox(false);
//$graph->ygrid->setcolor('gray');
$graph->ygrid->setfill(false);
$graph->xaxis->setticklabels(array('a','b','c','d'));
$graph->yaxis->hideline(false);
$graph->yaxis->hideticks(false,false);
// create the bar plots
$b1plot = new barplot($datay);
// ...and add it to the graph
$graph->add($b1plot);
$b1plot->setcolor(white);
$b1plot->setfillgradient(#4b0082,white,grad_left_reflection);
$b1plot->setwidth(45);
$graph->title->set(bar gradient(left reflection));
// display the graph
$graph->stroke();
?>
结果如下:
可以使用gd
gd version: bundled (2.0.34 compatible)
freetype support: 1
freetype linkage: with freetype
t1lib support:
gif read support: 1
gif create support: 1
jpeg support: 1
png support: 1
wbmp support: 1
xpm support:
xbm support: 1
jis-mapped japanese font support:
warning: require_once(jpgraph/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 13
fatal error: require_once(): failed opening required 'jpgraph/jpgraph.php' (include_path='.;c:\php\pear') in c:\program files\ (x86)\easyphp-12.1\www\formulaire\reponse_formulaire_systemb_1.php on line 13
因为把jpgraph的文件夹解压缩到easyphp\php\php546里了,所以php.ini没有修改.可是出现了问题,不知道这么回事.如果需要修改php.ini,请问要如何写呢?谢谢各位大神的回答.
------解决方案--------------------
把 jpgraph 文件夹的全路径附加到 include_path 后面