PDA

View Full Version : Delete image from server


tux
08-13-2008, 08:35 PM
I am able to upload my images to the server and delete the file names from my Database but how can I delete the images from the server.

Done a bit of Googling and I think I need to use 'unlink' but how is it used.

Regards, Paul

PS: Might be an idea for a new tut for Dj.

davidj
08-14-2008, 08:36 AM
@unlink($fileName)


as you can see a tutorial would be overkill

tux
08-14-2008, 07:11 PM
Too easy... thought it would be more involved than that Dj. Cheers mate.

Still didn't get that other prob sorted. I'm pushing on with the CMS tho now(nearly done, just debugging) will then get the Cart sorted. I may then need to hassle you again to see if we can come up with a solution.

Cheers again mate, regards

Paul