Reasons why no image is displayed in php drawing and solutions
Source: Internet
Author: User
For php plotting, you must first check whether the gd Library is enabled and go to php. in the INI file, find extensionphp_gd2.dll and remove the previous one. to restart the php drawing on the server, first check whether the gd Library is enabled and go to php. in the INI file, find extension = php_gd2.dll and remove the previous one. then restart the server.
If a normal image is still not displayed in the drawing, it indicates that the image information is incorrect when the server replies the request. do not Do not include html.
In addition, if no image is available, clear the cache before the drawing (that is, before writing the header), first write ob_clean (); then you can display it (including when writing a file for download, when the file cannot be opened after Download, clear the cache ).
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.