PDA

View Full Version : How I can compare if two flashes are the same?



xiaoxia
03-20-2009, 04:58 PM
Hi,

Is it possible to compare if one flash the user uploaded is the same as the one we already have in the server by php?

Thanks for helping!

Xiaoxia

tomws
03-20-2009, 06:18 PM
Perhaps md5_file() (http://us3.php.net/manual/en/function.md5-file.php)?

jeffatrackaid
03-20-2009, 08:08 PM
I would use any number of checksums on the file. MD5 should work very well. The issue is that you cannot compare checksums until the file is already uploaded.