Create a file called hidemail.php and place the following code into it.
<?php
$myText = $_REQUEST['m'];
$myText = strrev($myText);
$myTextLen = (strlen($myText) * 10);
$safeemail = imagecreate($myTextLen,25);
$backcolor = imagecolorallocate($safeemail,255,255,255);
$textcolor = imagecolorallocate($safeemail,0,0,0);
imagefill($safeemail,0,0,$backcolor);
Imagestring($safeemail,10,5,5,$myText,$textcolor);
header("Content-type: image/jpeg");
imagejpeg($safeemail);
?>
Now on the page where you want your email address to apper, enter an image tag as follows:
<img src="hidemail.php?m=moc.elpmaxe@enoemos">
replacing "moc.elpmaxe@enoemos" with your email address backwards. Entering your email address backwards will prevent the spam bots from harvesting your email address.
The following image is the result:
