PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 7th, 2004, 10:28 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
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!

Reply With Quote
  #2  
Old June 15th, 2004, 11:51 PM
KonaBreath KonaBreath is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 4 KonaBreath User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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{
//...
}

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Looking for a delete file script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT