|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Looking for a delete file script
I am looking for a tutorial or help creating a delete file script. The multi-upload tutorial on this site is great, but a suggestion at the end led me to wonder if anyone has seen a script posted for the use of a multi-delete function. I've written on that requires more work on the user's side than I want to put them through. Has anyone seen anything easy?
I also am looking for an online editing script for editing php. I was on a month ago asking this same question, and found a site with a contest for an online editor. The results are fantastic, but much more than I want to tackle. I'm just looking to delete files and edit files online. Just a point in the right direction is all I ask. Thanks. One more...duplicate entry. I have a form that submits a duplicate entry if the user uses the back command. Any ideas for this? lbd
__________________
bow wow! |
|
#2
|
|||
|
|||
|
for the delete, store the file names in a database,
then build your delete "full paths" from the file names in the db, and use the php unlink() function to remove the files As far as the back / dup entry thing, store a session value upon first submission such as $_SESSION['Form1_AlreadySubmitted']=true; Then simply check for that before session variable before performing the action eg. if(isset($_SESSION['Form1_AlreadySubmitted'])){ //... }else{ //... } |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Looking for a delete file script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|