upload size - apache - php
Posted: Fri Mar 05, 2004 7:12 am
Hi,
I have an domain where is Apache Web Server and Php.
I made a site that it is hosted by that server but not only mine it is there, of course.
I want to be able to upload big files, I mean like 35 Mega or something, from admin area of my site, so user can download them (the client asks for this).
Maybe up to 60 M. With php I upload the files. I know that from script I cannot set the upload size with ini_set, I tried to put a .htaccess in the upload folder, with:
php_value upload_max_filesize "100M"
php_value post_max_size "100M"
php_value memory_limit "100M"
php_value max_execution_time "600"
upload_max_filesize="100M"
post_max_size="100M"
memory_limit="100M"
max_execution_time=600
LimitRequestBody 102400000
but didn't work.
So does anybody knows hot to do it?
After this I talked with a guy from the support and he put all this settings in httpd.conf and I see it in local values and get them right, except memory_limit, with
print 'post_max_size = ' . ini_get('post_max_size') . "<br>";
print 'upload_max_filesize = ' . ini_get('upload_max_filesize') . "<br>";
print 'memory_limit = ' . ini_get('memory_limit') . "<br>";
print 'max_execution_time = ' . ini_get('max_execution_time') . "<br>";
and are correct, 100M. But still cannot upload more than 2 mega file.
What is the problem? Or is there another way?
Regards,
Adrian
I have an domain where is Apache Web Server and Php.
I made a site that it is hosted by that server but not only mine it is there, of course.
I want to be able to upload big files, I mean like 35 Mega or something, from admin area of my site, so user can download them (the client asks for this).
Maybe up to 60 M. With php I upload the files. I know that from script I cannot set the upload size with ini_set, I tried to put a .htaccess in the upload folder, with:
php_value upload_max_filesize "100M"
php_value post_max_size "100M"
php_value memory_limit "100M"
php_value max_execution_time "600"
upload_max_filesize="100M"
post_max_size="100M"
memory_limit="100M"
max_execution_time=600
LimitRequestBody 102400000
but didn't work.
So does anybody knows hot to do it?
After this I talked with a guy from the support and he put all this settings in httpd.conf and I see it in local values and get them right, except memory_limit, with
print 'post_max_size = ' . ini_get('post_max_size') . "<br>";
print 'upload_max_filesize = ' . ini_get('upload_max_filesize') . "<br>";
print 'memory_limit = ' . ini_get('memory_limit') . "<br>";
print 'max_execution_time = ' . ini_get('max_execution_time') . "<br>";
and are correct, 100M. But still cannot upload more than 2 mega file.
What is the problem? Or is there another way?
Regards,
Adrian