m_host. ' --user=' . $dbinfo->m_user. ' --password=' . $dbinfo->m_password. ' --database=' . $dbinfo->m_database. ' --execute="SOURCE '; $result = array(); foreach($files as $file){ $output = shell_exec($command .$file. '"'); $result[] = array($file,$output);} return $result; } }