Maximum execution time 300 reached

Dear All,
I have a page processing huge data so once reach 5 minutes the page stop. So now I have put a .htacess file in my local folder with the below settings. Then I still get the same error I have restarted the httpd. But when I check the phpinfo local value still showing me 300 as the maximum execution time.
max_execution_time = 6000; Maximum execution time of each script, in seconds
max_input_time = 6000 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 6000M ; Maximum amount of memory a script may consume (16MB)

Thank you.

Get to know the PHP web site, it’ll be your best friend;

Give it the number of seconds the script is to run before quitting, or zero to run forever. Resist the temptation to let it run forever though - you should probably redesign your program if it needs to be open-ended.

Dear Jules,
What is the value is must put in the set_time_limit() ? Thank you.

The settings should go in your php.ini file, not .htaccess. You can also call set_time_limit() in your script if you can’t get to the php.ini file.