1

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.

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

7 Comments

hi greg.. one more guidance.. will you please let me know how to answer for the questions posted by the user.
this is my first day in stackoverflow.. i search for it but there is nothing related to Your Answer. Is there any other option
Do you want to post an answer to your own question or to another users question.
@Fero - unlink does exactly what you are looking for, why would you want another option?
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.
|
0

PHP : Delete a file, or a folder and its contents

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.