Page 1 of 1

file updates

Posted: Wed May 16, 2007 7:40 pm
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?

Posted: Wed May 16, 2007 8:03 pm
by feyd
Of course there is. unlink() (or rename()) the existing file.

Posted: Wed May 16, 2007 8:14 pm
by ekosoftco
right when i went to check i remembered, but ty
:)
YAY i finished my file management system.
RAWR