

<?php
//Pieces of code to search for
$code1 = "<p>";
$code2 = "<body>";
//Grabs content from desired url
$content=file_get_contents("http://www.google.com");
//Searches content for pieces of code
if (strstr($content, $code1) || strstr($content, $code2)) {
// action here
echo "code string found";
}
?>



