php - Using md5_file(); doesn't return the md5 sometimes? -


<?php include_once('booter/login/includes/db.php');  $query="select * shells"; $result=mysql_query($query); while($row=mysql_fetch_array($result, mysql_assoc)){  $hash = @md5_file($row['url']); echo $hash . "<br>";     } ?> 

the above code. works flawlessly on urls, every , skip md5 on line, if doesn't retrieve it, though file there.

i can't figure out why. ideas?

edit: when removing '@' returns this:

[function.md5-file]: failed open stream: no such file or directory

the @ in front of md5_file suppresses warnings/errors might raised. removing @ allow errors md5_hash displayed , allow see why failing.


no such file or directory means there no file name has been searched. might want inspect urls causing warnings; maybe refer file has been renamed or moved.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -