NYCPHP Meetup

[nycphp-talk] using exec or backticks

Raymond DeRoo rainman at deroo.net
Fri Jun 28 14:17:27 EDT 2002


Ian--

> $command = "mysqldump -h localhost -u ian --password=something --opt
> adatabase > db.sql";
> $result = `$command`;
>
> or exec("mysqldump -h localhost -u ian --password=something --opt adatabase
>
> > db.sql");

Can the user your httpd runs as execute mysqldump? Even if it can, I doubt 
that mysqldump is in the path of the environment your httpd runs as. Try 
specifying the complete path to mysqldump and see if that works.

.r



More information about the talk mailing list