Changing php.ini Settings via htaccess
You can also change the settings of php.ini
using the htaccess file.
To do this, in this file,
first write the command to change the setting,
then a space, the name of the setting,
and then a space, its value.
There are two commands for making changes.
The php_flag command is intended
for boolean values, which
can be on or off,
and the php_value command is for all others.
As an example, let's enable error display:
php_flag display_errors on
And now let's set the maximum size of an uploaded file:
php_value upload_max_filesize 10M
Using the described method, change
the max_execution_time setting.