Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/04/2011, 14:53
econsorte
 
Fecha de Ingreso: abril-2011
Ubicación: MDP
Mensajes: 18
Antigüedad: 13 años
Puntos: 0
Respuesta: codigo php trackbacks?

Perfecto!
Veamos el código, cuando recibo un articulo quiero enviar un trackbacks.
En teoría seria este el código, pero no me funciona.

$this->load->library('trackback');

$tb_data = array(
'ping_url' => 'http://example.com/trackback/456',
'url' => 'http://www.my-example.com/blog/entry/123',
'title' => 'The Title of My Entry',
'excerpt' => 'The entry content.',
'blog_name' => 'My Blog Name',
'charset' => 'utf-8'
);

if ( ! $this->trackback->send($tb_data))
{
echo $this->trackback->display_errors();
}
else
{
echo 'Trackback was sent!';
}