In PHP, many times we found the error i.e. "maximum allocation time exceeds".
For resolving these errors we use php.ini file or we can resolve it buy using our .htaccess file.
1. Using php.ini file For this we have to increase the max_execution_time =360 (or more as per requirement) in our php.ini file and save it.
also we have to change memory_limit =128M (or more as per requirement)
2. Using php file For increasing execution time using php file we have to write ini_set(max_execution_time,360 ) at the first line of php page .
Also to change memory_limit write ini_set(memory_limit ,128M ) just after first line.
3. Using .htaccess file we can increase execution time and memory by writing this code on our htaccess file
< IfModule mod_php5>
php_value max_execution_time 360
php_value memory_limit 128M
< / IfModule>
0 Comment(s)