I'm importing a CSV file with 112059 rows with 3 columns each. That's 336177 entries. I'm not a genius but I think this'll take longer than 30 seconds to process and upload this many entries to our DB. How can I expand this timer by about... 10 times?

1 Answer 1


In the PHP script

ini_set ('max_execution_time', 3000);

In the .htaccess (within the directory)

<IfModule mod_php5.c>
    php_value max_execution_time 3000

In the php.ini (for the server)

max_execution_time = 3000 
  • I could kiss you Pilou. Commented Mar 19, 2015 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.