【发布时间】:2015-03-30 05:48:53
【问题描述】:
我无法让 jpgraph 的图像在网络上工作。当我在 localhost 中运行它时,jpgraphs 可以工作,但是当我上传它时出现错误消息:
警告 (2): file_exists() [function.file-exists]: open_basedir 限制生效。文件(/usr/share/fonts/truetype/arialbd.ttf)不在允许的路径中:(/home/:/usr/lib/php:/tmp)[APP/Vendor/jpgraph/jpgraph-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行]
如果你们有任何问题需要澄清,请随时提问。提前谢谢你
【问题讨论】:
标签: cakephp cakephp-2.0 jpgraph open-basedir