Read through huge text files and store each line in database

后端 未结 2 1444
深忆病人
深忆病人 2020-12-06 15:39

I wrote a PHP script which runs through a text file (actually it\'s a \'list\' file from imdb) and stores it on my local MySQL database.

public static functi         


        
2条回答
  •  情深已故
    2020-12-06 16:29

    You may either: Use set_time_limit(sec) or (better) run your script from the command line through a cron entry. That way you will avoid many other non-php related timeout issues.

提交回复
热议问题