我在使jpgraph的图像在网络上工作时遇到了麻烦。当我在localhost中运行它时,jpgraph可以工作,但当我上传它时,会出现一条错误消息:
警告(2):file_exists()[function.file exists]:open_basedir
限制生效。文件(/usr/share/fonts/truetype/arialbd.ttf)不在允许的路径内:(/home/:/usr/lib/php:/tmp)[APP/Vendor/jpgraph/jpgram-3.5.0b1/src/jpgraph _ttf.inc.php,第505行]
还有这个
警告(2):file_exists()[function.file exists]:open_basedir
限制生效。文件(/usr/share/fonts/truetype/arialbd.ttf)是
不在允许的路径内:(/home/:/usr/lib/php:/tmp)
[APP/供应商/jpgraph/jpgraph-3.5.0b1/src/jpgraph_ttf.inc.php,第510行]
如果你们有任何问题需要澄清,请不要犹豫。提前谢谢你