‘upload_max_filesize’ and ‘post_max_size’ are of type PHP_INI_PERDIR, which means “Entry can be set in php.ini, .htaccess or httpd.conf”. So you can’t set it in your script.
We can set PHP_INI_PERDIR settings in a .htaccess file with ‘php_flag’Read More »Why PHP ini_set() does not work with upload_max_filesize
I just fell in need of knowing the name of the method that is currently being called. After having a few minutes of unsuccessful searching i just thought of Late Static Binding and here the PHP Manual helped me.