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.

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.

  • 5 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.