Posted by: Anonymous Coward
on August 24, 2006 09:03 PM
Nice idea. What about creating files on the fly named $captcha_encrypted.png and after submitting the comment, delete them via unlink($_POST['captcha_encrypted'].".png")? Of course, you will have to find a method of deleting the old images, that have been accumulated over time. Maybe with
Filenames on the Fly
Posted by: Anonymous Coward on August 24, 2006 09:03 PMOf course, you will have to find a method of deleting the old images, that have been accumulated over time. Maybe with
foreach (glob("*.png") as $filename) {
echo "$filename size " . filesize($filename) . "\n";
unlink($filename);
}
at the beginning of the script.
#