On the basis of this code, how does CURL batch save web pages?

Source: Internet
Author: User
On the basis of this code, how does the CURL batch save webpages? good morning, everyone. thanks to fdipzone for helping me solve the problem of submitting the webpage to save the source code in input text.

If I want to use a textarea to input many URLs, use the carriage return as the interval to save each webpage. the names are named as numerical sequences.

How can I change the code below? thank you.

@ Jam00 @ xmt1139057136 @ fdipzone


Reply to discussion (solution)

Curl_setopt ($ ch, CURLOPT_FILE, 'vb.htm ');
It is automatically saved to the file, without 17 operations

Input Multiple Addresses. of course, the address is cut into an array.

You can refer to the csdn Forum's editing input box

Curl_setopt ($ ch, CURLOPT_FILE, 'vb.htm ');
It is automatically saved to the file, without 17 operations

Input Multiple Addresses. of course, the address is cut into an array.


I think the simpler way is to get a lot of IFRAME, and then save the source code in all IFRAME together to the local device.

You can use WEBBROWSER and php curl together.

You can use WEBBROWSER and php curl together.

Yes, batch processing is OK.

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.