Jump to content

[SOLVED] How can I temporarely get more execution time for my php


Hardwarez

Recommended Posts

I need to update every entry in a database table. The problem is that the code stops running after 30 seconds. 

 

Is there a way/a command I can use to allow greater execution time?  ???

 

I am updating a value on a great number of entries from one table to another but php times out before its done.

 

Im not out putting anything 'Till the end of the code.

Link to comment
Share on other sites

You can use the set_time_limit function it takes one parameter which is the number of seconds you want to limit your script to.

 

***Please not that this function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini.

Link to comment
Share on other sites

  • 5 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.