Augmenter max_execution_time de PHP
0Il existe diverses méthodes :
Via php.ini
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
Via htaccess
<IfModule mod_php5.c>
php_value max_execution_time 259200
</IfModule>
Plus finement toujours dans .htaccess :
<IfModule mod_php5.c>
php_value post_max_size 5M
php_value upload_max_filesize 5M
php_value memory_limit 300M
php_value max_execution_time 259200
php_value max_input_time 259200
php_value session.gc_maxlifetime 1200
</IfModule>
Dans WordPress via config.php
define('WP_MEMORY_LIMIT', '64M');
Dans drupal via sites/default/settings.php
ini_set('memory_limit', '128M');
Via d’autres frameworks,
ini_set('memory_limit', '128M');
Vous pouvez directement augmenter la mémoire en gigabyte :
ini_set('memory_limit', '3G');