PHP Database Dump Script - are there any issues?

后端 未结 6 2008
梦谈多话
梦谈多话 2020-12-17 07:35

I found a PHP function to dump a mySQL database that someone else had written, and then cleaned it up and formatted it a bit. I wanted to know if I could get a critique of i

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-17 08:02

    In case this is a very huge database that needs to be dumped, make sure your server (and php max execution memory per script) has enough memory to keep the whole $return in memory, otherwise you better flush to a file once a while, or every line.

提交回复
热议问题