title: Check if page contains some text in PHP
body: <p>I have weird issue. I am trying to get content of a web page (for example Google) and check if page contains some text. Sounds like a simple task, but I can't get it to work. Always getting FALSE after running script like this</p>
  
  <pre><code>$site_url = "http://google.com";
  $site = file_get_contents( $site_url );
  //echo $site;
  
  $pos = stripos($site,"window.chrome");
  var_dump( $pos );
  </code></pre>
  
  <p>Do you have some idea how to do search inside the page? And what is fast solution, because I need to put this in some loop?</p>