Forum Moderators: coopster
This is the only solution i came with.
$url = 'http://example.com';
$search = 'b55d57a3b1c9a125b896dbb249eb7e4b';
$data = file_get_contents(urlencode($url));
if(strpos($data,$search)) {
echo 'OK!';
} else {
echo 'Not found...';
}
Is there a better and quickier way to do this?
[edited by: eelixduppy at 4:13 pm (utc) on Mar. 15, 2007]
[edit reason] use example.com [/edit]
Some would say sockets would do this job faster (fsockopen), but I doubt. Some time ago tested on loop with about 500 pages, and there was no significant time difference (1 or 2 seconds).