Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 6 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_email1);
echo 
"<strong>Decoded email</strong>: "$decoded_email"<br />";
?>