Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-06-2008, 05:05 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,970

you could just use the above code, comment out the line that starts with $error.="The File... and add this line right below it:
PHP Code:
unlink($folder.$file_name[$i]); 
It would look something like this:
PHP Code:
// Check if the file already exists on the server..
} Elseif(file_exists($folder.$file_name[$i])) {

// $error.= "The file: ".$_FILES['file']['name'][$i]." exists on this server, please rename your file.<br />Your file(s) were <b>not</b> uploaded.<br />";
unlink($folder.$file_name[$i]); 
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to erase Linux partition from PC? carvercasey Hardware and Software 1 02-01-2010 06:07 AM
PhUploader problem buggerwepisspoo phphq.Net Forums 0 09-21-2008 06:18 PM
phUploader File Upload Vulnerability gopat phphq.Net Forums 7 05-27-2008 12:55 PM
phUploader sof-com phphq.Net Forums 1 05-25-2008 02:50 AM
phUploader help lodupersempre phphq.Net Forums 0 05-12-2008 08:30 AM


All times are GMT -5. The time now is 12:02 AM.




Powered by vBulletin®