I am using an OS X 10.37 system with apache 1.3.3, PHP 4.3.6, mysql
I am a newbie programmer with a problem. I am attempting to use php's
exec command to copy one database (a template) into another database.
My problem is that the exec command fails when attempting to issue
mysqldump or other mysql commands. It works for virtually all other
system functions such as ls -lan and cat whatever etc.
Here is the form of my php command string and the exec:
$str = ("mysqldump -u".$someuser." -p".somepassword." --opt -Q
databasetemplate | mysql -u".someuser." -p".somepassword."