PHP Script Timeout
I have a custom script for a bulletin board system that counts the number of threads a user has made, and updates a column accordingly. This works fine, however with 100,000+ users, it times out when running it for the first time.

I've tried adding the following before the query, but it still times out (500 error).

`set_time_limit(0);`  
`ignore_user_abort(true);`
PHP Script Timeout
===

I have a custom script for a bulletin board system that counts the number of threads a user has made, and updates a column accordingly. This works fine, however with 100,000+ users, it times out when running it for the first time.

I've tried adding the following before the query, but it still times out (500 error).

`set_time_limit(0);`  
`ignore_user_abort(true);`