Image Capturing-php Tutorial

Source: Internet
Author: User
There is a rule for capturing images.
URL xxx. php? X = 00001 to xxx. php? X = 10000 is continuous
I tried it many times, and every time I caught it, it was garbled,
This is the image path. Great Gods


Reply to discussion (solution)

1. How did you capture it?
2. provide the real address

1. How did you capture it?
2. provide the real address


This address is private and cannot be provided to you.
I have tried the web page capture method, and the same garbled code has been found every time.
I suspect it is an image suffix problem. Because the image path obtained through PHP
So xxx.xxx.com/xxx.php? X = 00001 this is the image path, which can only be parsed through the webpage. how can I capture it locally?

You can do this yourself.

Determine the image suffix based on content-type and save it

Access the image address to see what the header returns.
In fact, the picture has nothing to do with garbled text.
$ File = file_get_contents ('http: // xxx.xxx.com/xxx.php? X = 00001 ');
File_put_contents('test.jpg ', $ file, true );

See what is generated.

Access the image address to see what the header returns.
In fact, the picture has nothing to do with garbled text.
$ File = file_get_contents ('http: // xxx.xxx.com/xxx.php? X = 00001 ');
File_put_contents('test.jpg ', $ file, true );

See what is generated.


Succeeded. thank you.

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.