title: Running php script from book using command line
body: <p>I am trying to run this php script that i got from the book webbots, spiders, and screen scrappers.</p>
  
  <pre><code>  $target = "http://www.WebbotsSpidersScreenScrapers.com/hello_world.html";
  $file_handle = fopen($target, "r");
  
  # Fetch the file
  while(!feof($file_handle))
    echo fgets($file_handle, 4096);
  fclose($file_handle);
  </code></pre>
  
  <p>I am using the command php first.php and all it does is concatenate the file back to me.</p>