Home  >  Article  >  Backend Development  >  How to solve php png garbled problem

How to solve php png garbled problem

藏色散人
藏色散人Original
2020-08-28 10:38:282591browse

Solution to php png garbled code: first find and open the PHP code file that caused the error; then delete all the html code, that is, the "html, head, body" code.

How to solve php png garbled problem

Recommendation: "PHP Video Tutorial"

Solution to garbled display of png images in php GD

Problem:

Code:

Run result:

Fatal error: Call to undefined function imagecreate() in D:/wamp/www/index.php on line 2

Solution:

Put the html code (html , head, body), delete all these codes, and that’s it.

The above is the detailed content of How to solve php png garbled problem. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn