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 10-15-2005, 12:58 PM
CrossFireRadio
Unregistered

Posts: n/a

Just a little help?

Ive sene these posted already, but no one seems to answer or have an answer.. and Looking at the dates on some of these.. Not to many venture around here much anymore..

But here goes.

I have created multiple instances of the phUpload.php file and have renamed them all for specific users.. I've tried messing around with the code a bit but I cant seem to get it to work..

I want it to be able to overwrite a file thast already uploaded.. ( Example> You make upload a file called index.html, you update your page, you upload it, to overwrite it, so you get the updated page)

But im not quite sure on how to change the code in the file so it overwrites instead of asking you to rename the file.

2nd thing I did try.. in which I failed to accomplish. Creating more upload boxes instead of only have 1 box to upload 1 file... having to do Multiple Files instead.

Any help would be Great.

Thanx in advance,
CrossFire-Radio

-------------------------------------------
DJ Fire
Station Owner
http://www.crossfire-radio.com
Reply With Quote
  #2  
Old 10-15-2005, 01:10 PM
CrossFireRadio
Unregistered

Posts: n/a

Sorry for the double Post.. But has there been any Fix for the Password Part ?
Reply With Quote
  #3  
Old 10-31-2005, 03:52 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

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

Multiple uploads will require a bigger script change.. I'll see about that one.

You'll have to remove the file if it exists because on some servers php will not overwrite it. But, the code would be something like:


If(file_exists(_FILE_)) {
unlink(_FILE_);
}
__________________

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


All times are GMT -5. The time now is 03:53 AM.




Powered by vBulletin®