Humm...I've never done this but maybe use [man]file_get_contents/man to get each page then parse out what you need. Ex:
function get_results($query)
{
if (!is_string($query)) return('Error: String not passed to get_results().'); // Varify argument.
// Get the results from each search engine.
if (!$one = file_get_contents('http://mysite.com/searchengine/one.php?term=' . urlencode($query))) {
return('Error: Could not get the results from one.php');
}
if (!$two = file_get_contents('http://mysite.com/searchengine/two.php?search=' . urlencode($query))) {
return('Error: Could not get the results from two.php');
}
// Get stuff between HTML body tags.
$one = substr($one, strpos($one, '<body>'), strrpos($one, '</body>'));
$two = substr($two, strpos($two, '<body>'), strrpos($two, '</body>'));
// Return both results.
return($one . $two);
}
if (isset($_GET['query']) && !empty($_GET['query'])) {
print(get_results($_GET['query']);
}