-5

When I upload CSV file in symfony2 with 10000 records it gets error "Maximum execution time of 300 seconds exceeded".

Chiku
  • 107
  • 11

2 Answers2

2

You can increase maximum execution time on your php.ini as said before. You can also split your files into smaller, lighter files and process them separately.

jde
  • 198
  • 9
0

For bypass the the php.ini configuration you can set in your controller method the line:

public function verySlowerAction()
{
        set_time_limit(0);
....
}
Matteo
  • 37,680
  • 11
  • 100
  • 115