[PHP] Time limit on recursive procedure?

2009-06-07 Thread Clancy
I have a recursive procedure, and I set the time limit each time I enter it: function rec_scan($directory, ..) { set_time_limit (1); if (is_dir($new_file)) { rec_scan ($new_file, ) } } The

Re: [PHP] Time limit on recursive procedure?

2009-06-07 Thread Per Jessen
Clancy wrote: I have a recursive procedure, and I set the time limit each time I enter it: function rec_scan($directory, ..) { set_time_limit (1); if (is_dir($new_file)) { rec_scan ($new_file, ) } } The way I read the manual, the timer should be reset each time I call

Re: [PHP] Time limit on recursive procedure?

2009-06-07 Thread Clancy
On Sun, 07 Jun 2009 13:04:20 +0200, p...@computer.org (Per Jessen) wrote: Clancy wrote: I have a recursive procedure, and I set the time limit each time I enter it: function rec_scan($directory, ..) { set_time_limit (1); if (is_dir($new_file)) { rec_scan ($new_file, ) } }