Documentation

library.php

Tags
copyright

Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved.

license

GNU/GPL, see LICENSE.php EasyBlog is free software. This version may have been modified pursuant to the GNU General Public License, and as distributed it includes or is derivative of works licensed under the GNU General Public License or other free or open source software licenses. See COPYRIGHT.php for copyright notices and details.

Table of Contents

Classes

AkismetObject
AkismetHttpClient
Akismet

Constants

AKISMET_INVALID_KEY  = 2
AKISMET_RESPONSE_FAILED  = 1
AKISMET_SERVER_NOT_FOUND  = 0
08.11.2010 22:25:17est

Constants

AKISMET_INVALID_KEY

public mixed AKISMET_INVALID_KEY = 2

AKISMET_RESPONSE_FAILED

public mixed AKISMET_RESPONSE_FAILED = 1

AKISMET_SERVER_NOT_FOUND

08.11.2010 22:25:17est

public mixed AKISMET_SERVER_NOT_FOUND = 0

Akismet PHP4 class

Usage $comment = array( 'author' => 'viagra-test-123', 'email' => 'test@example.com', 'website' => 'http://www.example.com/', 'body' => 'This is a test comment', 'permalink' => 'http://yourdomain.com/yourblogpost.url', );

$akismet = new Akismet('http://www.yourdomain.com/', 'YOUR_WORDPRESS_API_KEY', $comment);

if($akismet->errorsExist()) { echo"Couldn't connected to Akismet server!"; } else { if($akismet->isSpam()) { echo"Spam detected"; } else { echo"yay, no spam!"; } }

Tags
author

Bret Kuhns {@link www.bretkuhns.com}

link
http://code.google.com/p/akismet-php4
version
0.3.5
license

http://www.opensource.org/licenses/mit-license.php MIT License


        
On this page

Search results