You also might want to look at the php.ini in the area of how many seconds are allowed to process scripts.. That's where time out errors generally come from.
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 240 ; Maximum execution time of each script, in seconds
max_input_time = 240 ; Maximum amount of time each script may spend parsing request data
memory_limit = 16M ; Maximum amount of
memory a script may consume (16MB)
these are normally set at like 60 seconds etc..