The Akismet PHP5 Class
This class takes the functionality from the Akismet WordPress plugin written by Matt Mullenweg and allows it to be integrated into any PHP5 application or website.
The original plugin is available on the Akismet website.
Usage:
Optionally you may wish to check if your WordPress API key is valid as in the example below.
Located in /Akismet.class.php (line 64)
Tests for spam.
Uses the web service provided by Akismet to see whether or not the submitted comment is spam. Returns a boolean value.
Makes a request to the Akismet service to see if the API key passed to the constructor is valid.
Use this method if you suspect your API key is invalid.
Defaults to rest.akismet.com
Defaults to '1.1'
Defaults to 80
The name that the author submitted with the comment.
The email address that the author submitted with the comment.
The address is assumed to be valid.
The URL that the author submitted with the comment.
The comment's body text.
The type of comment being submitted.
May be blank, comment, trackback, pingback, or a made up value like "registration" or "wiki".
A permanent URL referencing the blog post the comment was submitted to.
To override the referring page when submitting spam/ham later on
To override the user IP address when submitting spam/ham later on
Submit ham that is incorrectly tagged as spam.
Using this function will make you a good citizen as it helps Akismet to learn from its mistakes. This will improve the service for everybody.
Submit spam that is incorrectly tagged as ham.
Using this function will make you a good citizen as it helps Akismet to learn from its mistakes. This will improve the service for everybody.
Documentation generated on Sat, 23 Feb 2008 11:03:15 +0000 by phpDocumentor 1.4.1