Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP图形库不工作_Php_Jpgraph_Pchart - Fatal编程技术网

PHP图形库不工作

PHP图形库不工作,php,jpgraph,pchart,Php,Jpgraph,Pchart,我已经在我的系统上安装了pchart和Jpgraph,但是在运行它们的示例站点时,我得到的只是一个空白页面。GD已经安装在我的系统上,我已经检查过了。我需要更改php.ini文件中的任何内容吗?您需要在php中启用GD2库。在PHP.INI中查找该行 extensions=php_gd2.dll 并将其移除;(分号)在行的开头。保存该文件后,需要重新启动Apache(或您使用的任何东西),更改才能生效 参考文献来自本页 你有错误报告吗?检查了php错误日志吗?没有错误只是什么都没有得到dipl

我已经在我的系统上安装了pchart和Jpgraph,但是在运行它们的示例站点时,我得到的只是一个空白页面。GD已经安装在我的系统上,我已经检查过了。我需要更改php.ini文件中的任何内容吗?

您需要在php中启用GD2库。在PHP.INI中查找该行

extensions=php_gd2.dll
并将其移除;(分号)在行的开头。保存该文件后,需要重新启动Apache(或您使用的任何东西),更改才能生效


参考文献来自本页

你有错误报告吗?检查了php错误日志吗?没有错误只是什么都没有得到diplayedIt根本不清楚到目前为止您尝试了什么。你运行了什么代码?你希望它做什么?它实际上给了你什么?我正在使用像Jpgraph和pchart这样的库。他们有一系列的例子。我正在同一个文件夹中存储一个test.php文件,它工作正常。但该库提供的默认示例都不起作用。只显示一个空白页面,而需要某种图形