What to do if the PHP drawing does not display pictures

Source: Internet
Author: User
This article describes the PHP use of the GD library when drawing, unable to display the cause of the picture and the solution, the need to refer to the friend.

PHP drawing, it is necessary to confirm whether the GD library is enabled, to the php.ini file, find Extension=php_gd2.dll will be in front of, remove, restart the server.

If you still do not see the normal picture in the drawing, the server replies to the request, the picture information is wrong, to ensure that you do not have anything in front, including HTML.

If not the picture, in the drawing cleared cache (that is, before writing the header), first write Ob_clean (); You can then display the picture (including when you download the file, and then clean up the cache when the file is not open when you download it). PHP GD Library generated thumbnails of the basic knowledge of the PHP GD library The use of the GD function in the PHP GD library to generate high quality thumbnails (sample) PHP GD library for remote picture download PHP GD library function getimagesize () PHP Open GD Library ( Windows environment) PHP GD Library Drawing example code for 24-hour histogram Linux installation PHP GD support Library method php open GD2 Extension of PHP code (GD library generated verification code) example PHP GD library Chinese garbled solution PHP GD Library generates an instance of a verification code PHP GD library upload pictures and create thumbnails of the code

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.