Header ("Conteng-type: image/png") page becomes only image
Source: Internet
Author: User
The header (& quot; Conteng-type: image/png & quot;) page becomes only the image recently learned & lt; PHP & amp; mySQL example: create, modify, and reuse. & gt; according to the code in Chapter 1, there is a header ("header (" Conteng-type: image/png ") only images are displayed on the page.
Recently learning < > According to the code in Chapter 1
There is a header ("Conteng-type: image/png") in the verification code section ")
If you use this sentence, the page will become only an image. if you comment it out, the image will be displayed, but garbled characters will appear.
Think twice about it. try again! The verification code php image is shared to:>, according to the code in the first chapter, there is a header ("Conteng-type :? Image/png ")?... 'Data-pics = ''>
------ Solution --------------------
Header ("Conteng-type: image/png") is used to output a document as an image. of course, only the image is used.
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.