memorizzati l'md5 del file....

http://it2.php.net/manual/it/function.md5-file.php