woocommerce - CSV Import Script stops after a several minutes -


i writing woocommerce csv import script. csv file has 1000 rows. in localhost 1000 rows creating products in 40 minutes. when upload script in hostgator live server creates 200 - 300 rows , stops creating products no errors. have set set_time_limit(0); no luck.

it working fine in localhost not in live server. assume problem related server configuration. can me trace out problem?

first of all

max_input_time , set_time_limit(0)

will work vps or dedicated servers . instead of can follow rules implementation below

  1. first read whole csv file .
  2. then grab 10 entries (rows) or less , make ajax calls import in db
  3. try call ajax every time 10 entries , after echo out on browser . in method script never timeout .
  4. follow same method untill csv rows finished .

Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -