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 |