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
File Upload and Overwrite
Moderator: General Moderators
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: File Upload and Overwrite
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
Here's a pretty handy tutorial for beginners: http://www.tizag.com/phpT/fileupload.php
-
tolputt-craig
- Forum Newbie
- Posts: 5
- Joined: Mon Apr 07, 2008 9:32 am
Re: File Upload and Overwrite
ok cool, ill have a go.
Cheers
Cheers