I installed gd yesterday and it worked out well. But something weird happened today. The same file with code var_dump(gd_info()). It works just fine in cmd but not in explorer. It shows the information in cmd but a fatal error in explorer, Fatal error: Call to undefined function gd_info() ... I restarted apache but nothing changed. What should i do? Thanks for advice
Is the function gd_info enabled (and not disabled via php.ini), also is GD installed?, and take alook at the documentation for alternatives: http://php.net/manual/en/function.gd-info.php
Thank you. I've uncommended the "estension=php_gd2.dll" in php.ini. It worked well yesterday, and when i started my computer this morning, it failed. I input "php info.php" in cmd, it's ok. The information appears.When i open it through firefox, the fatal error appears...I think it's apache's problem, but it still didn't work after i restarted the apache...
Well, it turns out that i forgot to set the extension_dir to the ext path. But I still have no idea why it worked yesterday...Anyway, thanks for your advice.