PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of David Ferreira  >  Luta Spam  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script on how to use LutaSpam
Class: Luta Spam
Encode e-mail addresses to prevent harvesting
Author: By
Last change:
Date: 13 years ago
Size: 364 bytes


Class file image Download
require ("lutaspam.class.php");

$lutaspam = new lutaspam();

// code the email
$coded_email = $lutaspam->filtra("", 0);
"<strong>Coded email</strong>: ", $coded_email, "<br />";

// decode the email
$decoded_email = $lutaspam->filtra($coded_email, 1);
"<strong>Decoded email</strong>: ", $decoded_email, "<br />";

For more information send a message to info at phpclasses dot org.