from the admin panel the image is located here
../images/banners/file.png
how ever in my code i have the image name in database so the code would be this
Code: Select all
unlink("../images/banners/" . $banner);Warning: unlink(../images/banners/) [function.unlink]: Is a directory in /home/name/public_html/script/admin/promotional.php on line 44
I have the images folder and the banners folder chmod at 777
if anyone knows any ideas to fix this it would be a great help.