These settings will have no effect when configured through ini_set .
The reason is that PHP needs these values before your script is even executed. When loading occurs, the script target is executed when loading is complete, so PHP must know the maximum sizes in advance.
Install them in php.ini , your virtual host configuration, or in a .htaccess file. A typical .htaccess file would look like this:
php_value post_max_size 30M php_value upload_max_filesize 30M
Paul Dixon Jun 04 '09 at 9:16 2009-06-04 09:16
source share