how to execute a script without getting server error message

view story

http://serverfault.com – I have a script which is going to add 14400 records in database, but it takes a long time to do it, so I have set the max_execution_time in php.ini to 50000 (localhost) and yet it fails, what can I do to let the script finish its job until the end without stoping? (HowTos)