first, the configuration on this side of IIS.One: Click "Configuration Editor" under Site "admin". Two: Set the upload time-out limit. Click the drop-down menu section (S) and select System.web>httpruntime to set the value of Executiontimeout to 00:3
1, Mime_content_type () function to judge get file type
Mime_content_type returns the MIME type of the specified file.
Usage:
The code is as follows
Copy Code
Echomime_content_type (' Php.gif '). " n ";Echomime_content_
When we use php to download a file, you will find that the file to be downloaded is large, but the developer does not use Accept-Length to obtain the downloaded file size, next let's take a look at the example of how to get the size of the
Name = DefinitionThe name of a rule is simply the name itself (without anyEnclosing "") and is separated from its definition byEqual "=" character. white space is only significant in thatIndentation of continuation lines is used to indicate a
PHP//temporarily does not support the continuation of the breakpoint//$url = ' http://www.mytest.com/debian.iso '; do not know why get local file size is 0 $url= ' HTTP://192.168.8.93/DOWNLOAD/VM-672/18/0.VMDK '; $file=basename($url); $header=get_
Client_max_body_size is used to set the maximum allowable client request principal size, in the request header there is "Content-length", if this configuration item is exceeded, the client will receive a 413 error, that is, the requested entry is
Php obtains the local computer file, downloads it, and saves it. To download files in php, we use the readfile () function directly. readfile () can download the server source files, next I will introduce you to the users who download readfile files
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.