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你有沒有在命令提示符下試過你的命令。可能在這個命令中存在任何問題。試試吧。 –