Home > Backend Development > PHP Tutorial > Reasons and solutions for why pictures cannot be displayed in PHP drawing_PHP tutorial

Reasons and solutions for why pictures cannot be displayed in PHP drawing_PHP tutorial

WBOY
Release: 2016-07-13 10:37:06
Original
906 people have browsed it

For PHP drawing, you must first confirm whether the gd library is enabled. Go to the php.ini file, find extension=php_gd2.dll, remove the previous ";" and restart the server.

If the normal image is still not displayed in the drawing, it means that the image information is incorrect when the server responds to the request. Make sure there is nothing in front of , including html.

In addition, the picture is not output yet. Before drawing, clear the cache (that is, before writing the header). Write ob_clean(); You also need to clear the cache when the file is not open).

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/736798.htmlTechArticlePHP drawing must first confirm whether the gd library is enabled. Go to the php.ini file and find extension=php_gd2.dll. Remove the previous; and restart the server. If it still doesn’t display properly in the drawing...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template