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: 16 years ago
Size: 364 bytes
 

Contents

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

$lutaspam = new lutaspam();

// code the email
$coded_email = $lutaspam->filtra("nospam@onmyemail.pt", 0);
echo
"<strong>Coded email</strong>: ", $coded_email, "<br />";

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