Home « Server software «
Documentation: links/trackback.php
links/trackback.php - Process trackback requests
TrackBack is a framework for peer-to-peer communication and notifications between web sites. The central idea behind TrackBack is the idea of a TrackBack ping, a request saying, essentially, "resource A is related/linked to resource B." A TrackBack "resource" is represented by a TrackBack Ping URL, which is just a standard URI.Here is an example of TrackBack. Note that line breaks have been inserted for readability.
POST http://www.foo.com/yacs/links/trackback.php?anchor=article:123
Content-Type: application/x-www-form-urlencoded
title=Foo+Bar
&url=http://www.bar.com/
&excerpt=My+Excerpt
&blog_name=Foo
Using TrackBack, sites can communicate about related resources. For example, if Weblogger A wishes to notify Weblogger B that he has written something interesting/related/shocking, A sends a TrackBack ping to B.
This script can be triggered either remotely, by some weblog software POSTing trackback attributes, or locally, through some GET access to a form aiming to collect these attributes.
Basically, the form will be used by those who want to be referenced by your server but that don't have a trackback-enable platform. Others will operate remotely and silently.
Note: it's useless to ask for surfers to be authenticated, since trackback posts are anonymous by construction. Check how to harden this script agains spammers and hackers.
Note that YACS also has a client implementation of the trackback specification into links/links.php.
Accepted calls:
- trackback.php/<type>/<id> create a new link for this anchor
- trackback.php?anchor=<type>:<id> create a new link for this anchor
- trackback.php/<id> create a new link for the anchor 'article:<id>'
If the anchor for this item specifies a specific skin (option keyword '
skin_xyz
'),
or a specific variant (option keyword 'variant_xyz
'), they are used instead default values.This script is a reference file of this system.
Voir aussi:
- TrackBack Technical Specification
- links/links.php#ping
- articles/view.php
- articles/publish.php
- sections/view.php
- categories/view.php
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com