【问题标题】:jpgraph Warning (2): file_exists() [function.file-exists]: open_basedir restriction in effectjpgraph 警告 (2): file_exists() [function.file-exists]: open_basedir 限制生效
【发布时间】: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


    【解决方案1】:

    这实际上是您的 PHP 配置的问题,而不是 CakePHP。

    来自http://php.net/manual/en/ini.core.php

    将PHP可以访问的文件限制在指定的目录树中

    打开您的 php.ini,查找 open_basedir 行,然后将其注释掉。

    重新启动网络服务器,您应该一切顺利。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-16
      • 2014-09-27
      • 1970-01-01
      • 2011-07-15
      • 1970-01-01
      • 1970-01-01
      • 2015-03-06
      相关资源
      最近更新 更多