Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/11/2008, 22:56
exo123
 
Fecha de Ingreso: agosto-2008
Mensajes: 54
Antigüedad: 18 años, 3 meses
Puntos: 0
Respuesta: RPC con PHP para pings a technorati

gracias GatorV

tengo esto pero veo que hace nada, queda en blanco nomas

Código PHP:
<?php
$ch 
= curl_init();
curl_setopt($ch, CURLOPT_URL, "rpc.technorati.com/rpc/ping");
curl_setopt($ch, CURLOPT_HEADER, false);
$result = curl_exec($ch);

curl_setopt($ch, CURLOPT_URL, "URL"); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); 

$request ="<?xml version=\"1.0\"?>
<methodCall>
<methodName>weblogUpdates.ping</methodName>
<params>
<param>
<value>Titulo</value>
</param>
<param>
<value>http://www.misitio.com/</value>
</param>
</params>
</methodCall>"
;

$header = array ("POST /rpc/ping HTTP/1.0",  "User-Agent: rpc.php", "Host: rpc.technorati.com", "Content-Type: text/xml", "Content-length: 250\r\n", $request); 
?>
estoy medio perdido en este tema
¿que anda mal ahi?

vi este post http://www.forosdelweb.com/f18/alguien-sabe-como-utiliza-curl-php-483533/ y modifique