-1

Is there anyway to set timeout time with php? I have a script which is executing more time that my server allows to. How to change timeout time? Is it possible with php? Is it even possible? I can access my server settings only via cPanel.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Luka Krajnc
  • 915
  • 1
  • 7
  • 21

2 Answers2

0

See http://php.net/manual/en/function.set-time-limit.php or here: How to increase maximum execution time in php

Community
  • 1
  • 1
mp911de
  • 17,546
  • 2
  • 55
  • 95
0

You can use set_time_limit() found here: http://php.net/manual/en/function.set-time-limit.php

Ranald Lam
  • 496
  • 4
  • 9