This is actually pretty easy--as long as you have some basic info.
The first thing you need to do is figure out how the search string is handled in the page you wish to search. For example, to search google, you would need to form a string similar to:
http://www.google.com/search?q=javascript+navigation&hl=en&lr=&safe=off&btnG=Google+Search
With this string in hand, you can then use the fopen command--I got this code straight out of the manula...chapter 20, entitled Using remote files:
<?php
$file = fopen ("put your search string here", "r");
if (!$file) {
echo "<p>Unable to open remote file.\n";
exit;
}
while (!feof ($file)) {
$line = fgets ($file, 1024);
/ This only works if the title and its tags are on one line /
//Regular expressions to get data you need here--This example uses the title
if (eregi ("<title>(.*)</title>", $line, $out)) {
$title = $out[1];
break;
}
}
fclose($file);
?>
That should pretty much do it.
Hope this helps
Darren