i never got that class working.
here was my workaround:
$url = "www.domain.com"; // BASE url
$filename = "/search.php"; // include the beginning '/'
$site = "Sites";
$bool = "AND";
// Build the request string
$request = 'Source=' . urlencode($site);
$request .= '&searchstring=' . urlencode($searchstring);
$request .= '&bool=' . urlencode($bool);
// Build the header
$header = "POST $filename HTTP/1.0\r\n";
$header .= "Content-type: application/x-www-form-urlencoded\r\n";
$header .= "Content-length: " . strlen($request) . "\r\n\r\n";
// Open the connection
$fp = fsockopen("$url", 80, &$err_num, &$err_msg, 30);
if ($fp) {
// Send everything
fputs($fp, $header . $request);
// Get the response
while (!feof($fp)) {
$response .= fgets($fp, 128);
}
}
echo $response;
hope this helps,
~kyle