iis7 php upload big files
Environmet: iis7 + php
I need to upload very big files, 3 GB maximum...
to allow 3GB upload files in iis7: %windir%\system32\inetsrv\config\applicationhost.config
...
<requestfiltering>
...
<requestLimits maxAllowedContentLength="3145728000" />
...
</requestfiltering>
...
if i put in php.ini:
post_max_size = 3000M
upload_max_开发者_如何学Cfilesize = 3000M
the login form doesn't work...
and i only put it in upload script:
set_time_limit(0);
$post_max_size = ini_get('post_max_size');
$upload_max_filesize = ini_get('upload_max_filesize');
ini_set('post_max_size', '2901M');
ini_set('upload_max_filesize', '2900M');
...
ini_set('post_max_size', $post_max_size);
ini_set('upload_max_filesize', $upload_max_filesize);
but doesn't work... i don't know how to fix this problem :(
i fix it putting the memory limit bigger than post_max_size and post_max_size bigger than upload_max_filesize in php.ini
memory_limit = 4001M
post_max_size = 3001M
upload_max_filesize = 3000M
thanks for Awea
You need to set :
max_execution_time
max_input_time
Too but Dagon have right ftp would be better for big files upload
EDIT
Asynchronous upload : uploadify
精彩评论