thx for the link? but it's a basic theory
a new code
Code:
<?php
$content = '
<?xmlversion="1.0"?>
<methodCall>
<methodName>weblogUpdates.ping</methodName>
<params>
<param>
<value>OfficialGoogleBlog</value>
</param>
<param>
<value>http://googleblog.blogspot.com/</value>
</param>
<param>
<value>http://googleblog.blogspot.com/changed-page.html</value>
</param>
<param>
<value>http://googleblog.blogspot.com/atom.xml</value>
</param>
</params>
</methodCall>
';
$headers = 'POST /RPC2 HTTP/1.0
User-Agent: Ping
Host: rpc.weblogs.com
(anti-spam-content-type
text/xml
Content-length: '.strlen($content);
$request = $headers."\r\n".$content;
$fs = fsockopen('rpc.weblogs.com', 80, $error_number, $error_string);
if ($fs)
{
fwrite ($fs, $request);
while (!feof($fs))
{
$response = fgets($fs);
echo $response;
}
fclose ($fs);
}
else
{
echo $error_number." - ".$error_string;
}
?>if i send ping to rpc.weblogs.com i get
Quote:
HTTP/1.1 200 OK Date: Thu, 05 Jun 2008 08:52:07 GMT Server: Apache ...
but if i send ping to rpc.pingomatic.com i have nothing
if i send ping to blogsearch.google.com/ping/RPC2 or to ping.blogs.yandex.ru/RPC2 i have error 14006611
what's wrong with the code ?
__________________
ننتظر فكرة باذن لله
تحياتي...............