irx Posted May 15, 2008 Share Posted May 15, 2008 Hello I am having trouble deleting a user uploaded image after I am done with it. I need to be able to delete the image immediatly off my server as soon as the editing is done. heres my code Code: $Img = ImageCreateFromJPEG($path); $cor = imagecolorallocate($Img, 154, 41 ,45); imagestring($Img, 2, 580, 550, $name,$cor); header('Content-type: image/jpeg'); imagejpeg($Img, NULL, 100); imagedestroy($Img); unlink($path); I believe it has something to do with the fact that I am reoutputting the image to browser, and therefore my unlink is useless. Is there a workaround? Link to comment https://forums.phpfreaks.com/topic/105802-unlinking-dynamic-images/ Share on other sites More sharing options...
irx Posted May 16, 2008 Author Share Posted May 16, 2008 *bump Link to comment https://forums.phpfreaks.com/topic/105802-unlinking-dynamic-images/#findComment-542971 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.