HOW-TO: Generate an Image of Text using PHP

bracketslash

Registered User
Joined
Feb 6, 2013
Messages
224
Do you receive a lot of spam emails?

Do you have your email address in your signature, or anywhere on the web?

There is a connection between the two: email harvesting has a main source of forum signatures.

There is a way to have your email in your signature AND prevent your email address from being harvested, however!

The solution is to generate a transparent image of your email address so that it is in image form and not plain-text form.

Note: This tutorial assumes that you are familiar with PHP, or at least PHP-style formatting.

First, we must instantiate the header for our PHP file as the type "image/png" so that when our PHP file is opened it displays a PNG image.
<php?

header('Content-type: image/png');

?>



To be continued :)
from the cluttered DROID RAZR of bracketslash
 
Back
Top