php exec() - mysqldump creates an empty file

后端 未结 7 1634
再見小時候
再見小時候 2021-01-11 14:22

I want to create a backup from a database, but I get only a blank file.

include(\'config.php\');

$command = \"mysqldump --opt -h \".$_host.\" -u \".$_user.\         


        
7条回答
  •  别那么骄傲
    2021-01-11 15:05

    If you look at the manual for exec the output goes to an array that is the second argument. That may be the source of the problem.

提交回复
热议问题