file updates

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ekosoftco
Forum Contributor
Posts: 108
Joined: Fri Aug 04, 2006 8:21 pm

file updates

Post by ekosoftco »

im kinda stuck
i have a upload function where a file will upload to my server,
but what im trying to get is a way where i can upload the updated file.
right now, i have a upload script where it stops if the file exists, and thats what i want, so we dont get a ton of the same files, but is there a way to update an already uploaded file?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Of course there is. unlink() (or rename()) the existing file.
ekosoftco
Forum Contributor
Posts: 108
Joined: Fri Aug 04, 2006 8:21 pm

Post by ekosoftco »

right when i went to check i remembered, but ty
:)
YAY i finished my file management system.
RAWR
Post Reply