Set maximum execution time in MYSQL / PHP

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

    maximum execution time for Apache Web Server is 300 seconds (5 min), so if your script is very long you have to options

    1. your script can be executed on most 5 minutes open php.ini file and chanage max_execution_time = (seconds) for example to max_execution_time = 300

    2.if you scripts need mor than 5 minutes you should first change Httpd.conf file (Apache config file)

    TimeOut (number of seconds you want)
    

    and also in php.ini max_execution_time = (number of seconds you want)

提交回复
热议问题