System() function is not working with mysqldump. WHY?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
victhour
Forum Commoner
Posts: 38
Joined: Fri Feb 17, 2006 12:59 am
Contact:

System() function is not working with mysqldump. WHY?

Post by victhour »

hi pepz!

assuming all variables are ok.

the statemenst below is giving me no output.

Code: Select all

$backupFile = $dbse.'sql';
$command = "mysqldump --opt -h $host -u $user -p $pass $dbse > $backupFile";
system($command);
pls... help.

tanx in advanced.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

how about

Code: Select all

system($command, $retval);

echo $retval;
victhour
Forum Commoner
Posts: 38
Joined: Fri Feb 17, 2006 12:59 am
Contact:

Post by victhour »

i didn't notice any output :(

how do i see the dumped files according to whatever on $dbse.'sql'

please i need more help (

tanx...
victhour
Forum Commoner
Posts: 38
Joined: Fri Feb 17, 2006 12:59 am
Contact:

Post by victhour »

does any body know some idea.
Post Reply