Tag-php output verification code picture has a problem !!! Use the file_get_contents function to import the peer verification code interface.

Source: Internet
Author: User
Php output verification code picture has a problem !!! Use the file_get_contents function to import the peer verification code interface. During the output, the following html tags are overwritten and no output is made. Why is it wrong ??? The output is as follows: Garbled image format:

Php output verification code picture has a problem !!! Use the file_get_contents function to import the peer verification code interface.

During the output, the following html tags are overwritten and no output is made.
Why is it wrong ???

Output as follows:

Garbled format:

Reply content:

Php output verification code picture has a problem !!! Use the file_get_contents function to import the peer verification code interface.

During the output, the following html tags are overwritten and no output is made.
Why is it wrong ???

Output as follows:

Garbled format:

...... Khan... what will happen to another file? You specified the header of the pageHeader ("content-type: image/png ")It's a picture, and people need to display webpages. Are you so difficult for PHP? Do your parents know...

Two portals, oneHeader ("content-type: image/png ")The verification code is displayed specially. The webpage is displayed normally at the other portal. The address of the verification code on the webpage is the address of the portal just now.

Or you canHeader ("content-type: image/png ")This code is removed,File_get_contentsConvert the imageBase64The image address display is also acceptable.

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.