<?php

// Email address passed dynamically
$address = $_GET['address'];

// Start with our static image, which is a small white rectangle
$im = imagecreatefrompng("blank.png");

// define a color
$black = imagecolorallocate($im, 0, 0, 0);

// Paint the text onto the blank rectangle.
// Parameters this function takes:
// $im = the image "handle"
// "2" = font size
// 1st "10" = starting X coordinate
// 2nd "10" = starting Y coordinate
// $address = the text we want
// $black = duh
imagestring($im, 2, 10, 10, $address, $black);

// output the picture
header("Content-type: image/png");
imagepng($im);

?>
