Top Left Text cha

Website Development Services

<?php
   $search-string = "derpity derp";
   $arr = array("http://site1.com", "http://site2.com", "http://etc.com");
   foreach ($arr as $site) {
      $contents = file_get_contents($site);
      if ( strpos($contents, $search-string) !== false ) {
         echo "$site - code found.<br />';
      }
   }
   unset($site); 
?>

  • No comments found

Leave your comments

Post comment as a guest

0
Your comments are subjected to administrator's moderation.
X