PHP max_filesize

PHP max_filesize

Posted by: statto
Posted on: 2009-08-06 06:16:00

I am trying to up the maximum uploadable file size to my website. I have tried doing this through .htaccess, but run into some problems.

If I use

AddHandler application/x-httpd-php .php
php_value post_max_size 150M
php_value upload_max_filesize 150M
php_value memory_limit 250M

then I can successfully upload larger files (but nowhere near the 150 MiB you might expect) but it seems to use PHP 4.4.7. On the other hand,

AddHandler phpFive .php
Action phpFive /cgi-system/php5.cgi
php_value post_max_size 150M
php_value upload_max_filesize 150M
php_value memory_limit 250M

keeps me at the latest version of PHP, but does not seem to alter the size.

Any ideas?!

Cheers!

Re: PHP max_filesize

Posted by: sXi
Posted on: 2009-08-06 06:24:00

Increase the values in your php.ini (as opposed to the .htaccess method).




How To Install PHP.INI / ionCube on DreamHost

Tags: memory limitmax sizehtaccesscheers