+ Reply to Thread
Results 1 to 2 of 2

Thread: time limit exceed

  1. #1
    apach3 is offline x10Hosting Member apach3 is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    2

    time limit exceed

    How to solve problem of time limit excced of 60s in php?

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: time limit exceed

    Don't have your page do so much.

    If there are tasks that you can't cut out completely, create some sort of queueing mechanism. Have the page that's timing out add the jobs to the queue rather than performing the task itself. Process jobs from the queue periodically with a cron script.

    The details of creating a queueing mechanism depend on the nature of the tasks, but the general aspects are fairly simple: you need a data store for job information and ways of adding, getting and removing jobs. Usually you store the data necessary to the job in a database table or a file (though in the latter case you'll need to handle concurrent access using e.g. flock).
    Last edited by misson; 12-05-2010 at 11:41 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. set time limit
    By gooman8752 in forum Free Hosting
    Replies: 1
    Last Post: 07-15-2010, 02:01 PM
  2. time limit to post ads
    By gauntfly in forum Free Hosting
    Replies: 1
    Last Post: 09-19-2008, 10:47 PM
  3. Ditch the Computer Time Limit
    By MarioMaster in forum Off Topic
    Replies: 30
    Last Post: 08-06-2008, 02:04 AM
  4. What must i do if my bandwidth limit exceed?
    By cr2112 in forum Free Hosting
    Replies: 2
    Last Post: 05-18-2008, 05:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers