Does PHP crawl the page with curl will not only crawl half stop, if stopped, is to return the part of the HTML code that has been crawled or not at all?
Reply to discussion (solution)
If the other server does not respond properly to you, it will stop. So you need to look at the other side of the server.
The rules are correct and you get the part of the HTML code that crawls to.
Yes! Can be the cause of the network or the other side
After the interruption, will the finished data still be there? It depends on how you write the code.
Conventional notation, naturally, is not, because it is a time-out and fails.
But if you specify a saved file Curlopt_file
or specifies a write callback curlopt_writefunction
It's a chance to get it.
Yes! Can be the cause of the network or the other side
After the interruption, will the finished data still be there? It depends on how you write the code.
Conventional notation, naturally, is not, because it is a time-out and fails.
But if you specify a saved file Curlopt_file
or specifies a write callback curlopt_writefunction
It's a chance to get it.
Does curl have a function to determine if the entire page is loaded?
If the other server does not respond properly to you, it will stop. So you need to look at the other side of the server.
The rules are correct and you get the part of the HTML code that crawls to.
Does curl have any function to determine if the entire page has been loaded? All I need is a loaded page.
Curl_getinfo