<?php
//Change the extension of this file to .php and embed in a HTML file using regular <img> tags
//In some situations you might have to use a valid image file extension, in that case you will
//have to set up your webserver to process these files as php
//I suggest using .jpeg or another infrequently used file extension for jpeg images
//It doesn't matter that the image sent is not actually jpeg.

//IP addresses are logged in image-list.txt

$iplist fopen("image-list.txt","a");
fwrite($iplistdate("H:i:s  j/n/y") . ": "$_SERVER['REMOTE_ADDR'] . "\n");
fclose($iplist);

$im imagecreate(1,1);
$bg imagecolorallocatealpha($im,240,240,255,127);

header("content-type: image/png");
imagepng($im);
imagedestroy($im);
?>