If the browser times out, you can view a MySQL processlist in something like phpMyAdmin to see when it's finished.
You can control the PHP timeout with the max_execution varaible in the php.ini file of your PHP install. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />