top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How can we resolve maximum allocation time exceeds error?

0 votes
How can we resolve maximum allocation time exceeds error?
posted Jul 28, 2014 by Karamjeet Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

We can resolve these errors through php.ini file or through .htaccess file.

  1. From php.ini file increase the max_execution_time =360 (or more according to need)

    and change memory_limit =128M (or more according to need)

  2. From php file we can increase time by writing ini_set(‘max_execution_time’,360 ) at top of php page to increase the execution time.

And to change memory_limit write ini_set(‘memory_limit ,128M )

  1. From .htaccess file we ncrease time and memory by

php_value max_execution_time 360

php_value m emory_limit 128M

</ IfModule >

answer Jul 30, 2014 by Rahul Mahajan
Similar Questions
+1 vote
$scope.addTodo = function() {     
    var url = '';
    var config1 = {headers:{
    'Access-Control-Allow-Methods': ['OPTIONS', 'GET', 'POST'],
    'Access-Control-Allow-Headers':'Origin, X-Requested-With, Content-Type, Accept',
    'Content-Type':'text/plain; charset=utf-8',
   //  alert("hello");
   alert("url" + url);
   //Enable cross domain calls
   $http.defaults.useXDomain = true;
   // alert("$http.defaults.useXDomain");
   //Remove the header used to identify ajax call  that would prevent CORS from working
   delete $http.defaults.headers.common['X-Requested-With'];
    //   alert("$http.defaults.headers.common");
    //  alert("$http.config1"+config1);
    //  alert("url" + url);

    $http.get(url, config1).success(function (data, status, headers, config) {
  alert("inside success");
   alert("inside else");
error(function (data, status, headers, config) {
alert("Error, please report to admin. Error code is " + status);
//alert("data, please report to admin. Error code is " + data);      
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.