<?php$code = 'News';$site= 'http://google.com';$curl_handle = curl_init();// Where should we get the data?curl_setopt ($curl_handle, CURLOPT_URL, $site);// This says to return it as a string.curl_setopt ($curl_handle, CURLOPT_RETURNTRANSFER, 1);// This prevents your page from hanging if the remote site is downcurl_setopt ($curl_handle, CURLOPT_CONNECTTIMEOUT, 1);// Now, YOU make the call.$profile_html = curl_exec($curl_handle);// And tell it to shut down (when you're done).curl_close($curl_handle);echo $profile_html;if (strpos($profile_html, "$code") === false) { echo "no"; } else { echo "yes"; }?>