Page 1 of 1

File Upload and Overwrite

Posted: Fri Apr 11, 2008 8:53 am
by tolputt-craig
Hey Guys,

Im slowly learning php but i am really stuck on something....

I have some code that uploads files with a browse button which works fine but i want to be able to upload a file with the same name which overwirtes the old files...

Can this be done if so any ideas where to get the script from?

Cheers

Craig

Re: File Upload and Overwrite

Posted: Fri Apr 11, 2008 9:03 am
by aceconcepts
I do believe that if a duplicate file is uploaded to the same directory then it overwrites the older one by default.

Here's a pretty handy tutorial for beginners: http://www.tizag.com/phpT/fileupload.php

Re: File Upload and Overwrite

Posted: Fri Apr 11, 2008 9:12 am
by tolputt-craig
ok cool, ill have a go.

Cheers