[eluser]Mohammed Zayan[/eluser] In my site I can upload photos and I save these photos in folder named upload
and save it's path in my database
I want to delete a photo from database and folder too
[eluser]Mohammed Zayan[/eluser]
I save it in database to be able to view the photo by <img />
In the first code $filename is a link also
Is this will do what I want?
[eluser]CroNiX[/eluser]
Maybe. You'd have to play with them as I don't really use those. I only save the filename in my database, not the full url, so knowing the paths to the files is easy.