Hi all,
Would anyone know how to search an external html file for a work or phrase ?
I was thinking something like -
<?php
$fp = fopen('http://www.google.ca', 'r');
if (preg_match('/Google.ca/', print fgets($fp))) {
echo "match";
} else {
echo "no match";
}
?>
Unfortunently, that doesn't work, but you get the jist of what I'm attempting.
Any ideas, suggestions, code would be greatfully appreciated,
Thanks,
Smoonie