DOMDocument xpath query cut off time
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" );
精彩评论