try to output something like
die(__FILE__.':'.__LINE__); consequently to find out where exactly it timed out.
Is it possible to get a stack trace logged when a php script times out? I am trying to find out why this vbulletin php script is locking up. I have no idea where to start with finding out why its locking up. I don't even know where to look because vbulletin is so large.