Set maximum execution time in MYSQL / PHP

前端 未结 5 1532
名媛妹妹
名媛妹妹 2020-12-03 12:18

I have an XML document that has around 48,000 children (~50MB). I run an INSERT MYSQL query that makes new entries for each one of these children. The problem is that it tak

5条回答
  •  抹茶落季
    2020-12-03 12:46

    Put this at the top of your script:

    ini_set('max_execution_time', 300);
    

    That'll make it 5 minutes.

提交回复
热议问题