sHostName, $this->nPort, &$errno, &$errstr, 30);
if (!$fToOpen)
{
//contruct error string to return
$sReturn = "\r\n\r\n$errstr\r\n\r\n";
}
else
{
//construct XML to send
//search and replace HTML chars in SQL first
$sSQL = HTMLSpecialChars($sSQL);
$sSend = "\r\n\r\n$this->sConnectionString\r\n$sSQL\r\n\r\n";
//write request
fputs($fToOpen, $sSend);
//now read response
while (!feof($fToOpen))
{
$sReturn = $sReturn . fgets($fToOpen, 128);
}
fclose($fToOpen);
}
return $sReturn;
}
}//class
?>