click here"); exit(); } $mobile = $_GET['mobile']; $msg = $_GET['msg']; function gw_send_sms($sms_to,$sms_msg) { $query_string = "api.aspx?apiusername=APIZNH8SVEXTN&apipassword=APIZNH8SVEXTNZNH8S"; $query_string .= "&senderid=iCompuCARE&mobileno=".rawurlencode($sms_to); $query_string .= "&message=".rawurlencode(stripslashes($sms_msg))."&languagetype=1"; $url = "http://gateway.onewaysms.com.au:10001/".$query_string; $fd = @implode ('', file ($url)); if ($fd) { if ($fd > 0) { Print("MT ID : " . $fd); $ok = "success"; } else { print("Please refer to API on Error : " . $fd); $ok = "fail"; } } else { // no contact with gateway $ok = "no Contact Fail"; } return $ok; } //if ($_SERVER['REMOTE_ADDR'] == "14.192.215.9") { gw_send_sms($mobile,$msg); //} ?>