md5-file

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

<?php include_once('booter/login/includes/db.php'); $query="SELECT * FROM shells"; $result=mysql_query($query); while($row=mysql_fetch_array($result, MYSQL_ASSOC)){ $hash = @md5_file($row['url']); echo $hash . "<br>"; } ?> The above is my code. Usually it works flawlessly on most urls, but every now and then it will just skip the...

A way to make md5_file() faster?

I currently use md5_file(); to run through about 15 URLs and verify their MD5. Is there a way I can make this faster? It takes far too long to run through all of them. Sorry if this isn't a good question, I just realized its only three (four if you count this one) sentences long. ...

md5_file() not working with remote content fetched by URL

Here is my code relating to the question: $theurl = trim($_POST['url']); $md5file = md5_file($theurl); if ($md5file != '96a0cec80eb773687ca28840ecc67ca1') { echo 'Hash doesn\'t match. Incorrect file. Reupload it and try again'; When I run this script, it doesn't even output an error. It just stops. It loads for a bit, and...

Does md5_file have a memory limit/timeout for remote files?

I've been trying to hash the contents of some zip files from a remote source using PHP's md5_file function: md5_file($url); I'm having a problem with a couple of URLs; I'm getting the following error: Warning: md5_file($url): failed to open stream: HTTP request failed! I think it's because the zip files are quite large in those cas...

C# calculate MD5 for opened file?

Hello, how I can calculate MD5 hash for a file that is open or used by a process? the files can be txt or and exe my current code return error for an exe because it is running here is my current code public static string GetMd5HashFromFile(string fileName) { FileStream file = new FileStream(fileName, FileMode.Ope...