Posted By

jatkins on 08/25/08


Tagged

file files validation security hash md5 validator validators md5hash


Versions (?)

File v. MD5 validator


 / Published in: PHP
 

Is that file really the file you think it is?

  1. <?php
  2. if(md5_file($_GET['file'])==$_GET['md5']) { // Are the same
  3. // Code
  4. }
  5. else { // Aren't the same
  6. // Code
  7. }
  8. ?>

Report this snippet  

You need to login to post a comment.