Home Backend Development PHP Tutorial 大神求教,很简单的东西不好用啦,md5_file对2g的文件没用,该如何解决

大神求教,很简单的东西不好用啦,md5_file对2g的文件没用,该如何解决

Jun 13, 2016 pm 01:38 PM
file md quot time zip

大神求教,很简单的东西不好用啦,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;

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hongmeng native application random poetry Hongmeng native application random poetry Feb 19, 2024 pm 01:36 PM

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 the file Use java's File.length() function to get the size of the file Jul 24, 2023 am 08:36 AM

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 How to convert php blob to file Mar 16, 2023 am 10:47 AM

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.

Rename files using java's File.renameTo() function Rename files using java's File.renameTo() function Jul 25, 2023 pm 03:45 PM

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.

How is the MD5 value of Douyin video generated? How is the MD5 value of Douyin video generated? Feb 19, 2024 pm 08:37 PM

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

A guide to MD5 encryption techniques in PHP A guide to MD5 encryption techniques in PHP May 22, 2023 am 08:40 AM

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

Best Guide to Compressing HTML Files to ZIP Best Guide to Compressing HTML Files to ZIP Apr 09, 2024 pm 04:09 PM

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)

Monotonic clock processing of time package Monotonic clock processing of time package Aug 04, 2023 pm 05:45 PM

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.

See all articles