Php? Image Download-php Tutorial

Source: Internet
Author: User
Php? Image Download
Signup_answer?> ">

 Signup_answer?>


I use the tag to download images.



It is displayed in a new window instead of a download box.


Reply to discussion (solution)

The reason why the Download box does not pop up is that the browser knows your picture, so the picture is displayed.
So you need to send a header that cannot be explained by the browser so that the browser will pop up the download box.

Images can be recognized by browsers, so only hyperlinks are not supported. you need to use PHP code to download images. you can search for the keyword 'php download 'to find a lot of code.

Two methods.
1. click the link to the. new PHP download page. use the header to download the image/

2. make all the files to be downloaded into a ZIP package. download the package...

Generally, the first type. A label is used to pass an id in the past. then the download page is used to process hreader download.

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.