Jump to content

[SOLVED] deleting files from filesystem when new pictures uploaded


pixelgirl

Recommended Posts

Hey everyone,

 

I have a handy little script that uploads up to three pictures to a particular folder on my filesystem. The script also resizes the pictures to a standard width ratio, and randomly generates and then saves the fielnames in my database so I can show the files on my webpage.

 

My question is, when I am deleting files (if the user wants to change the pictures they have uploaded for example) I delete the filename entry from the database so I cant reference the filename any more, but how do I remove the file from the folder?

 

Im not sure which section of the forum this question should go in, but I am coding in PHP so I thought someone might have some idea?

 

Apololgies if this is in the wrong place.

 

Any help is appreciated :)

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.