jbroder
03-01-2000, 02:19 PM
Ok,
I have my file upload script working and my users are merrily uploading files to their own personal directory. Now I want them to be able to delete unwanted uploads, but I'm worried about security.
I could easily allow deletes with perl:
`mv $filename ~/trash'
But that is probably a really bad idea. Besides, I would like to stick with php as much as possible.
Or I could make it look like a user delete, but really just log a delete request and then delete the file myself.
Does anyone have some experience or advice about this?
Related question: under php security provisions at futurequest, can we write to a file (not mysql, a file) on the server at all?
Thanks,
Jon
I have my file upload script working and my users are merrily uploading files to their own personal directory. Now I want them to be able to delete unwanted uploads, but I'm worried about security.
I could easily allow deletes with perl:
`mv $filename ~/trash'
But that is probably a really bad idea. Besides, I would like to stick with php as much as possible.
Or I could make it look like a user delete, but really just log a delete request and then delete the file myself.
Does anyone have some experience or advice about this?
Related question: under php security provisions at futurequest, can we write to a file (not mysql, a file) on the server at all?
Thanks,
Jon