/** * @param [type] $first_arr see run_everything_amazon function in 'ssh' custom class * @return [type] [description] */ function send_ssh_request($Net_SSH2Ob, $first_arr, $type, $other = array()) { $sshOb = new ssh($Net_SSH2Ob); if ($Net_SSH2Ob->isConnected()) { $ssh_result = $sshOb->run_everything_amazon($first_arr, $type, $other); if ($ssh_result == 1) { return 1; } else { return 0; } } }