// ==============================================
function do_command ($string_cmd) {
$string_rtn = '';$fp = popen($string_cmd, 'r');
while (!feof($fp)) {
$string_rtn .= fread($fp, 8192);
}
pclose($fp);
unset($fp);return $string_rtn;
}
// ==============================================$str_tmp = do_command('ssh 192.168.1.1 "rm -rfv /tmp/*" 2>&1');