In a certain class, you need to increase the execution time of the methods. Will it be correct to set the set_time_limit () function like this?

<?php set_time_limit(3600); class AjaxController extends controller { // ... } 

Will this work properly for class methods when I create a new object of the AjaxController class?

 $aj = new AjaxController(); 
  • To delay the execution you need to use sleep . - And
  • It seems you are doing nonsense trying to synchronize some processes. I think you chose the wrong solution unless you write the code to close the pressure seal in the subway after the alarm is announced. - Maxim Stepanov
  • The answer to the question - no, it will not - DaemonHK

0