i have done little bit of research on this but all the information i could find was about unlinking text file i need to unlink an image.
i have a variable which store the path to an image stored in file on the server which is what i am trying to unlink. the code i have used id this
unlink($broad1name2);
and the code which stores the path to the image looks like this
$broad1name2="image/thumbs/thumb_".$image_name;
when i run the code i get the error message
Warning: unlink(): No such file or directory in /home/acmeart/public_html/mercury/upload.php
i have never used the unlink() function before and would like it if someone who has used it or knows how to use it to show me were i am going wrong.
are you able to use a variable to unlink a file?