top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can we resolve maximum allocation time exceeds error?

0 votes
746 views
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 = 'http://services.postcodeanywhere.co.uk/PostcodeAnywhere/Interactive/Find/v1.10/json2.ws?Key=XE97-xXxx-YG99-JK92&SearchTerm=12345&PreferredLanguage=English&Filter=&UserName=&CallbackFunction=a';
    var config1 = {headers:{
    'Access-Control-Allow-Origin':'*',
    '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',
    'Accept':'*/*'
            }};
   //  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("success");
  if(data.success){
  alert("inside success");
  }else{
   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);      
});
};
...