Php regular expression captures webpage content & nbsp; I want to capture the link of HD video on the youku network and send it to the mobile client, however, the capturing time is not ideal (about 50 videos, the computer takes more than 6 seconds to capture and display on the webpage, and 30 seconds to send the video to the mobile phone). What are the optimization methods? Php regular expressions capture webpage content
I want to capture the link of the HD video on the youku network and send it to the mobile client. However, the capture time is not ideal (about 50 videos, and it takes more than 6 seconds for the computer to capture and display the video on the webpage, it takes more than 30 seconds to send the message to your mobile phone.) what are the optimization methods? Php? Capture webpages, optimize content, share:
------ Solution --------------------
Change Optical fiber!
------ Solution --------------------
The main user wants to capture the link, not the video content. use CURL
------ Solution --------------------
Use curl_multi_exec () for concurrent capturing
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