tags:

views:

603

answers:

2

Hello all,

I am currently developing a IMAGE GALLERY site. Every thing is working well and GOOD except a small Problem. For example, if i am deleting a image in the site its deleting successfully from the database and no longer displaying in the gallery. But i need to remove the specific image from the folder. Is there any chance to do that. if YES please guide me to do that..

Thanks in Advance

+2  A: 

To delete a file you need to use the unlink() function.

Greg
thanks Greg. It does what i need to do..
Fero
hi greg.. one more guidance.. will you please let me know how to answer for the questions posted by the user.
Fero
this is my first day in stackoverflow.. i search for it but there is nothing related to Your Answer. Is there any other option
Fero
Do you want to post an answer to your own question or to another users question.
rahul
@Fero - unlink does exactly what you are looking for, why would you want another option?
karim79
If you need to post an answer to another user's question then open the corresponding question page and at the bottom there is a textarea [actually a markdown editor] for entering your answer.
rahul
If you need to answer your own question then there is a button at the bottom named Answer Your Question.
rahul
thanks phoneix.. i got it.. thanks for ur help again..
Fero
yes karim. unlink is the correct option what i search for.. thanks for ur advice too..
Fero