By Admin - June 13, 2017 2:50 pm 1 296 0
If you ll not delete image everytime when you delete your record then you need server with huge memory space because there is lots of useless pics on your server. If you ll use this method then your image automatically delete from folder...
The unlink() is used for delete image stored in root folder.
Simple and easy code to delete image with php :
<?php unlink(folder_name/image_name); ?>