Commit 1486dc8f authored by Dries's avatar Dries

- Make Drupal ping Yahoo.com.

parent 13f1d2ed
......@@ -107,5 +107,18 @@ function ping_ping($name = '', $url = '') {
if (!$result || $result->faultCode()) {
watchdog('error', t('Failed to notify technorati.com.'));
}
unset($client);
$client = new xmlrpc_client('/RPC2', 'api.my.yahoo.com', 80);
$message = new xmlrpcmsg('weblogUpdates.ping', array(new xmlrpcval($name), new xmlrpcval($feed)));
$result = $client->send($message);
if (!$result || $result->faultCode()) {
watchdog('error', t('Failed to notify yahoo.com.'));
}
}
?>
......@@ -107,5 +107,18 @@ function ping_ping($name = '', $url = '') {
if (!$result || $result->faultCode()) {
watchdog('error', t('Failed to notify technorati.com.'));
}
unset($client);
$client = new xmlrpc_client('/RPC2', 'api.my.yahoo.com', 80);
$message = new xmlrpcmsg('weblogUpdates.ping', array(new xmlrpcval($name), new xmlrpcval($feed)));
$result = $client->send($message);
if (!$result || $result->faultCode()) {
watchdog('error', t('Failed to notify yahoo.com.'));
}
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment