-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
  • 704,970
  • 168
  • 1,303
  • 1,425
Luka Krajnc
  • 917
  • 1
  • 6
  • 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
  • 16,333
  • 2
  • 47
  • 89
0

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

Ranald Lam
  • 486
  • 4
  • 9