2
votes

ini_set('post_max_size', '200M') did not work in php 5.4 i had use following method. .htaccess , user.ini , php.ini , php5.ini but it did not effect of post_max_size. it remain on 64M. it change the memory limit and execution time but did not change the post_max_size.

phpinfo(); system information PHP Version 5.4.29 System Linux gator4143.hostgator.com 3.2.54 #9 SMP Thu Feb 13 08:17:11 CST 2014 x86_64 Virtual Directory Support disabled

1
Did you restart Apache?Lewis
You can't use ini_set for this - Read MoreDarren
You have to change max upload size as wellAdam

1 Answers

1
votes

All those you mention are configuration files. In configuration files you simply cannot run PHP code because they are not scripts. You have to use the corresponding syntax (just check other directives on the same file). Typically:

  • php.ini, .user.ini → post_max_size = "200M"
  • .htaccess, httpd.conf → php_value post_max_size 200MB