开发者

DOMDocument xpath query cut off time

开发者 https://www.devze.com 2023-04-02 05:37 出处:网络
is there a way to cut of the query and return back the results.. preset time to take to get all images from the given url ..i.e. query half of the webpage ? orjob time not greater than 5 seconds, so t

is there a way to cut of the query and return back the results.. preset time to take to get all images from the given url .. i.e. query half of the webpage ? or job time not greater than 5 seconds, so therefore, it will get everything it can in 5 seconds.....

my xpath code:

$x开发者_如何转开发path = new DOMXPath( $htmlget);
       $nodelist = $xpath->query( "//img/@src" );
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号