Ermm... What is the problem? If you move_uploaded_file() to the same location every time, obviously it will be overwritten.
yep but how can i make the file name change to the one i already uploaded lets say i have logo.png and i uploaded logo444.png how can i force it to rename to logo.png?