How to delete a image file from a folder.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

How to delete a image file from a folder.

Post by sarbas »

Hi to all,

I have a problem with the image file management. Actually I use a folder to save the image-file which are used in my PHP pages, Where as I used to store the image-file's path and other details in a database , Here I can delete the details of the image file in database . but I dont know how to delete the particular image file from that folder . Can any one help with the complete solution .


Advance thanks

Sarbas,.
Jim_Bo
Forum Contributor
Posts: 390
Joined: Sat Oct 02, 2004 3:04 pm

Post by Jim_Bo »

Hi,

Look into:

unlink()


Take alook at this post for the concept of how it works:

Take alook at this post for the concept of how it works


hth
Post Reply