I have a long set of database queries which will take a while to be executed. But at the half execution I get Maximum execution time of 30 seconds exceeded error.
I tried
Because you are setting mysql.connect_timeout, and the error says the script has exceeded maximum execution time limit. It doesn't mention anywhere it has anything to do with mysql, it's only your presumption.
set_time_limit is a PHP function.
It should work if you tried this.
@toniperic I'm making myself wait for more than 30 secs :P Its like for general public it will be faster. But when I (SuperAdmin) register the organization Then have to perform some task. And instead of doing it one by one, I made a script to do them all in once.