Reputation: 7053
I am thinking of a way to send a request to page, and receive a request from a page and then read it. The problem is that I dont know what is the most efficient way of achieving so.
$result=file_get_contents('scan_results.php');
$scanning=true;
while($scanning){
if(stristr($result,'Nothing to scan.')){
$scanning=false;
}
}
Right now, I simply send a request to the page and try to scrape the page for the sentence 'Nothing to scan.'.
The page scan_results.php, should do a few tasks, so I loop it until I get 'Nothing to scan'.. So basically, I am thinking of using a better way to check when I get the sentence nothing to scan..
Upvotes: 0
Views: 59