When you try to create a database with a size of 10,000 lines from a csv file using PHP, you can write 850,840 lines to stop in then. If you restart the computer on which the server costs, you get 922 lines. Any idea where the limit is?

  • If not difficult to give a piece of code that insert data? Do you use multi-line INSERT or insert one record per loop? - cheops

2 answers 2

see with what error the script most likely stops

  • set_time_limit (0); // unlimited time - And

Remove script restriction on runtime

<?php set_time_limit(0); ?>