Hey guys! i just want to know if you know any free image upload script where you upload your images temporary. I need the image files to be deleted over time.
A:
There is no such a way/method/script. Write a code which delete image files once they are no longer needed.
adatapost
2009-08-23 12:49:16
A:
Automatic? No way, you can aways use like this simple example:
$id=(int)$_GET['id'];
$sql = "DELETE FROM imagens WHERE img_id=".$id;
$exe=mysql_query($sql, $conect);
if($exe) unlink($_GET['arq']);
mysql_close ($conect);
look, in a effective system, you need moore checks for a secure code :)
OctaneFX
2009-08-23 13:17:10