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
source:php.cn
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
Group MySQL results by ID for looping over
I have a table with flight data in mysql. I'm writing a php code that will group and displ...
From 2024-04-06 17:27:56
0
1
406
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
|