Why doesn't my PHP database backup script work?
<p>When I manually run the output from print it works fine. However the actual program produces the following error:</p>

<p>sh: /mysqldump: No such file or directory</p>

<pre><code>&lt;?php

$backupFile = "backup/wordpress" . date("Y-m-d-H-i-s") . '.gz';
$command = "mysqldump -hlocalhost -uusername -ppassword dbname | gzip &gt; $backupFile";
print $command;
system($command);


?&gt;
</code></pre>
