“call to undefined function imagecreatetruecolor” error in PHP & pChart

后端 未结 6 1783
南旧
南旧 2020-12-30 19:41

I am trying to integrate \"pChart\" with my PHP code. When I am trying to run the samples it gives me an error stating call to undefined function imagecreatetruecolor<

6条回答
  •  执念已碎
    2020-12-30 20:20

    Use the following code to test if you have GD extension:

    ".print_r($testGD,true)."
    ";

    If you get the message that it's not installed, then check the following steps:

    1. phpinfo() and look up php.ini path
    2. edit php.ini: extension_dir=
    3. edit php.ini: extension=php_gd2.dll //uncomment or add
    4. Restart web server
    5. Run the test script again

提交回复
热议问题