<?php
$fp = fsockopen("rpc.technorati.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "POST /rpc/ping HTTP/1.0\r\n";
$out .= "User-Agent: YOUR AGENT HERE\r\n";
$out .= "Host: rpc.technorati.com\r\n";
$out .= "Content-Type: text/xml\r\n";
$out .= "Content-length: [the exakt lenght (in chars) of the content that comes below i guess]\r\n\r\n"; // notice \r\n\r\n on the last header
$out .= "<?xml version="1.0"?>
<methodCall>
<methodName>weblogUpdates.ping</methodName>
<params>
<param>
<value>YOUR WEBLOG NAME HERE</value>
</param>
<param>
<value>http://www.YOURWEBLOGURL.com/</value>
</param>
</params>
</methodCall>"
fwrite($fp, $out);
while (!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}
?>