using exec or backticks
ian at plusfour.org
Fri Jun 28 10:26:33 EDT 2002
I am trying to do a mysqldump using php..
$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
but on red-hat or mac os X (aka freebsd) i get nothing.. not even an empty
file named db.sql..
On my windows machine even is my login was incorrect, a file was still
which leads me to believe, for linux, is it an issue of permissions?
$a = array();
$int = 1;
$c = "ls";
on both linux and windows. I get the same results from the above.. so it
must be permissions.. should i try running it as a cgi?
More information about the talk