Does anyone know of an easy PHP script to just toss in a directory on a web server to see the md5 hash values of each file?
Announcement
Collapse
No announcement yet.
(PHP) MD5 generator for a folder?
Collapse
X
-
(PHP) MD5 generator for a folder?
Quakeone.com - Being exactly one-half good and one-half evil has advantages. When a portal opens to the antimatter universe, my opposite is just me with a goatee.
So while you guys all have to fight your anti-matter counterparts, me and my evil twin will be drinking a beer laughing at you guys ...Tags: None
-
Should be super simple with scandir and md5_file. Let me try.
Code:<?php $files = scandir("."); // remove . and .. array_shift($files); array_shift($files); foreach( $files as $file ){ $md5sum = md5_file($file); echo $md5sum." ".$file."<br />\n"; } ?>
Last edited by Spirit; 08-20-2009, 06:38 AM.
-
Looks like that is simple and should work for my uses. I've found lately I've been backing up a lot of Quake files and get increasingly paranoid that something valuable could be corrupted even with a FTP client that supports resume and so forth.
Thanks! I think you've been ahead of the curve adopting "quality control" methods to ensure archives and files are what they are supposed to beQuakeone.com - Being exactly one-half good and one-half evil has advantages. When a portal opens to the antimatter universe, my opposite is just me with a goatee.
So while you guys all have to fight your anti-matter counterparts, me and my evil twin will be drinking a beer laughing at you guys ...
Comment
-
Comment