function post($host,$path,$data){ 
    $fp = fsockopen($host,80,$errno, $errstr,30); 
    fputs($fp,"POST $path HTTP/1.1rn"); 
    fputs($fp,"Host: $hostrn"); 
    fputs($fp,"Content-type: application/x-www-form-urlencodedrn"); 
    fputs($fp,"Content-length: " . strlen($data) . "rn"); 
    fputs($fp, "User-Agent: MSIErn"); 
    fputs($fp, "Connection: closernrn"); 
    fputs($fp, $data); 
    $buf=''; 
    while (!feof($fp)) { 
        $buf .= fgets($fp,128); 
    } 
    fclose($fp); 
    return $buf; 
}