大神求教,很简单的东西不好用啦,md5_file对2g的文件没用,该如何解决
大神求教,很简单的东西不好用啦,md5_file对2g的文件没用
$md5file = md5_file("1.zip");
echo $md5file;
?>
代码非常简单,如上,获取md5值,如果1.zip比较几百兆或者更小,可以读出md5值,如果该文件比较大,我测试的一个是2g多,则获取不到值,页面等待了一会儿,显示
Fatal error: Maximum execution time of 30 seconds exceeded in F:\file\getMD5.php on line 2
求教
------解决方案--------------------
MD5是要抽取数据的,2G自然是太大,会超时。
------解决方案--------------------
set_time_limit(0);
$md5file = md5_file("1.zip");
echo $md5file;

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

To learn more about open source, please visit: 51CTO Hongmeng Developer Community https://ost.51cto.com Running environment DAYU200:4.0.10.16SDK: 4.0.10.15IDE: 4.0.600 1. To create an application, click File- >newFile->CreateProgect. Select template: [OpenHarmony] EmptyAbility: Fill in the project name, shici, application package name com.nut.shici, and application storage location XXX (no Chinese, special characters, or spaces). CompileSDK10, Model: Stage. Device

Use Java's File.length() function to get the size of a file. File size is a very common requirement when dealing with file operations. Java provides a very convenient way to get the size of a file, that is, using the length() method of the File class. . This article will introduce how to use this method to get the size of a file and give corresponding code examples. First, we need to create a File object to represent the file we want to get the size of. Here is how to create a File object: Filef

How to convert php blob to file: 1. Create a php sample file; 2. Through "function blobToFile(blob) {return new File([blob], 'screenshot.png', { type: 'image/jpeg' })} ” method can be used to convert Blob to File.

Use Java's File.renameTo() function to rename files. In Java programming, we often need to rename files. Java provides the File class to handle file operations, and its renameTo() function can easily rename files. This article will introduce how to use Java's File.renameTo() function to rename files and provide corresponding code examples. The File.renameTo() function is a method of the File class.

What does Douyin video MD5 mean? With the rapid development of Internet technology, video sharing platforms have become an important way for people to obtain fresh information and entertainment. Among many video platforms, Douyin has quickly won the love and popularity of users around the world with its unique short video format and exciting content. Douyin’s video MD5 has also become one of the topics of interest and concern to many users. So, what exactly does Douyin video MD5 mean? First, we need to understand what MD5 is. MD5(MessageDigest

PHP is a very powerful programming language that is widely used in the field of web development. As Web sites grow day by day, website security issues have become a factor that cannot be ignored in Web development. Among them, password security is the most important part. In order to protect user passwords, web developers often use encryption technology to encrypt and store passwords. MD5 is one of the commonly used encryption technologies. This article will focus on MD5 encryption technology in PHP. 1. Introduction to MD5 algorithm MD5 (Me

Compressing HTML files into ZIP can improve page loading speed. Methods include: using online tools (such as FileOptimizer, TinyPNG) using command line tools (such as gzip, 7-zip) using Node.js scripts (using the zlib module)

Today we are mainly going to take a look at the time application method of golang time package. The general rule between the two is that "wall time" is used to tell time, and "monotonic clock" is used to measure time; there are other clock processing methods.
