Monday, March 1, 2010

Re: How to send a pingback?



On 02/03/2010, at 8:24 AM, Oliver wrote:

Just wanted to second this question.
There doesn't seem to be very much documentation on how to enable
pingbacks in CakePHP... I guess because it's a pretty complex piece of
functionality.

I personally haven't tried setting up such a system, however it would
be interesting to know if anybody has had any luck with pingbacks.
Maybe in the future we will see a pingback behaviour/component/
helper...

On Jan 23, 2:59 am, 5942marine <jluken...@gmail.com> wrote:
Has anyone had any success setting cakephp up to send a pingback?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en


This post is actually a very good description of the process: http://www.quietearth.us/articles/2006/10/30/Coding-your-own-blog-Pingback-in-php
And it links the specification for Pingback too: http://www.hixie.ch/specs/pingback/pingback

Essentially, adding either (or both) a X-Pingback header, or html head <link> indicating your pingback url, then implementing that route to a controller that handles your pingbacks would do the trick.
In terms of handling the pingbacks, the code you need is spelt out in the first article linked above.

This is probably best done as a Component, and could be implemented very easily in a non-obtrusive manner.
Let me know if you have any other questions.

Cheers,

Graham Weldon
e. graham@grahamweldon.com
p. +61 407 017 293
w. http://grahamweldon.com

No comments: