Images); you can output images, but if you can directly output images to a browser, you cannot. The following code is PHPcode & lt ;? PhpHeader (Content-type: imag uses imagettftext to input characters on the image, and the image cannot be generated in the browser.
I wrote a Chinese character string in imagettftext.pdf on the image, which can be used to output the image in a browser and use imagepng(imim,'x.png '). I can output the image but cannot output it to a browser. My code below
PHP code
------ Solution --------------------
Discussion
Reference:
Reference:
There is no error message. the browser is blank, but some garbled characters will appear in IE browser. I try to replace imagettftext with imagestring to make the output work normally, provided that I want to remove Chinese characters ......
Imagestring does not support Chinese characters. Only yong imagettftext is supported. if it is garbled, it indicates that the image may be lost before it is generated ......
------ Solution --------------------
Discussion
Text.