pingback library requirements

raw

phork0.rst

Client

  • send pingback for given URL to remote URL
  • use HTTP_Request2, since it allows to use curl if available and others if not
$pc = new Pingback_Client();
$pc->send($myUrl, $targetUrl);

TODO: error handling. exceptions? simply true/false with $pc->getError()?

Server

  • register custom handler
  • register custom validator
  • provide basic backlinking validator
$ps = new Pingback_Server();
$ps->registerHandler(array($datastore, 'storePingback'));
$ps->registerValidator(array($pingbackValidator, 'checkBlogAge'));
$ps->registerValidator(array($pingbackValidator, 'checkFriendliness'));
$ps->run();

Existing libraries

Anonymous Anonymous
owner

History