Retrieving information from another page
<p>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.</p>

<pre><code>  $result=file_get_contents('scan_results.php');

      $scanning=true;

      while($scanning){
             if(stristr($result,'Nothing to scan.')){
                    $scanning=false;
                }
      }
</code></pre>

<p>Right now, I simply send a request to the page and try to scrape the page for the sentence 'Nothing to scan.'.</p>

<p>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.. </p>
