0
我想使用PHP脚本导出我的数据库,我发现here。导出数据库时出错
当我运行PHP脚本时,会创建一个sql
,但sql
为空。
此外,还在浏览器中显示该错误:
Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\test\Export.php on line 12
There was a warning during the export of testing to ~/database/test1.sql
的线12是这样的线:
exec($command,$output=array(),$worked);
此外,我从例如改变输出路径,
$mysqlExportPath ='database/test1.sql';
如何解决这个错误?还是其他的例子?
它解决了'Strict Standards'错误,但是出口警告仍然存在。之后,'sql'文件不再被创建。 – Chin
@AnonyNewbie你有没有在命令提示符下试过你的命令。可能在这个命令中存在任何问题。试试吧。 –