Can i use MD5 on a file?
I have an image upload site and I would like to check the MD5 of images with the same name when uploading just incase the file is already on the server.
How do I parse a file to MD5? (I think what I was doing was creating a hash of the file name).
tia gp
is this it?
md5_file($file);
yes it works well. thanks for the help. np.
gp
yeah, got it to work on http://putfile.com
It now checks to see if that image has already been uploaded, if it has it adds the image to your previous files list and does not save the one you "uploaded"
This will save some diskspace 🙂