Ok, the code below seems like it should work... But it doesn't.
<?php
system("mysqldump -urootytooty -pqwerty customerdatabase > dumper.sql");
?>
if I enter
mysqldump -urootytooty -pqwerty customerdatabase > dumper.sql
it works fine, but when I try to do it from PHP with system(), it doesn't do anything...
i did read an obscure post I found on google that mentions that the password and/or username may have to be quoted, like:
<?php
system("mysqldump -u\"rootytooty\" -p\"qwerty\" customerdatabase > dumper.sql");
?>
but i have tried that, and it did not work, permissions should not be an issue, and i can issue other commands through system() without any problems...
Any ideas, I've tried just about every permutation of this code I can think of, to now avail. Would somebody try to get this to work, or at least confirm its failure on their server...
Thanks,
Stephen
P.S. - It's my first post, be gentle!