Set maximum execution time in MYSQL / PHP

前端 未结 5 1538
名媛妹妹
名媛妹妹 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:33

    You can use the ini_set at the start of your application.

    ini_set('max_execution_time', *number of seconds here*); //300 seconds = 5 minutes
    

提交回复
热议问题