I'm getting the error in the title, now I know that I can easily fix this by changing max_execution_time in php.ini but I would rather place this in the code and thus use ini_set. My problem is that the setting is not taking effect when set within the code.
Where is the best place to place something like ini_set( 'max_execution_time', 0 );