PHP itself does not have the function of having a real-time upload progress bar. If we want to have this function, we usually use ajax to implement it, but PHP provides an apc, which can be configured with PHP to implement the upload progress bar.
Mainly targeted at applications on windows.
1. The server must support the apc extension. If there is no such extension, search php_apc.dll on Baidu and download an extension. The extension requires php.5.2 or above.
2. Configure apc related configuration and restart apache
The code is as follows | Copy code | ||||
extension=php_apc.dll
apc.max_file_size = 1000M upload_max_filesize = 1000M = 1000M |
代码如下 | 复制代码 | ||||||||||||||||
session_start(); PHP Code getprogress.php
index.php
Previous article:PHP Header function implements download short-click resume program_PHP tutorial
Next article:PHP implements multi-file upload program code_PHP tutorial
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
Latest Articles by Author
Latest Issues
When adding sublime3 to compile system php, use the PHP toolbox, cmd php -v is useless
From 1970-01-01 08:00:00
0
0
0
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
|