This code dynamically generates a clear 1x1 pixel.

1,762 Views
<?php

// We'll be outputting a GIF
header('Content-Type: image/gif');

// Generate a clear pixel
$output = base64_decode('R0lGODlhAQABAJAAAP8AAAAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==');

// Spit it out
echo $output;
About the Author

I'm a super-geeky programmer with a passion for Internet marketing. :)