I'm using the system() syntax to run a mysqldump command through PHP to the unix shell.
While I receive no errors, the dump file is not being generated - anyone have any ideas on why this may be ocurring?
code:
$password = "*******";
echo "Creating Backup of test database...<br>\n";
$last_line = system("mysqldump -u pmcgover -p$password test > test.sql", $returnval);
echo "Return Value: $returnval<br>\n";
echo "Last Line of Output: $last_line<br><br>\n";
passthru("QUIT");
The output is as follows:
Creating Backup of test database...
Return Value: 2
Last Line of Output:
This makes absolutely no sense to me