File manager - Edit - /home/autoph/public_html/voc/home/SMSTest.php
Back
<?php include 'core/init.php'; //########################################################################## // ITEXMO SEND SMS API - PHP - CURL-LESS METHOD // Visit www.itexmo.com/developers.php for more info about this API //########################################################################## $MyAPIcode = "PR-AUTOH172111_IE74I"; $MyPasswd = "me}vfe3j#c"; //'PR-AUTOH172111_IE74I','me}vfe3j#c'; function itexmoA($number,$message,$apicode,$passwd){ $url = 'https://www.itexmo.com/php_api/api.php'; $itexmo = array('1' => $number, '2' => $message, '3' => $apicode, 'passwd' => $passwd); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($itexmo)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close ($ch); return $server_output; } //########################################################################## //$MyAPIcode = mysql_result(mysql_query("SELECT `SMSAPICode` FROM `asa_versioning_db` WHERE `type`='Live'"),0); $empMobileA = mysql_result(mysql_query("SELECT `usr_mobile` FROM `vts_users` WHERE `u_id`='1'"),0); //$MyPasswd = mysql_result(mysql_query("SELECT `SMSAPIPass` FROM `asa_versioning_db` WHERE `type`='Live'"),0); $SMSMessage = "Clearance Form has been routed to you for your recommendation."; $result =itexmoA('09269172111', 'live test','PR-AUTOH172111_IE74I','me}vfe3j#c'); if ($result == ""){ //echo '<script>alert("No response from SMS server. SMS failed to send. Code: 20024".)</script>'; echo "Error Num ". $result . " was encountered!"; }else if ($result == 0){ echo "SMS Sent!"; } else{ echo "Error Num ". $result . " was encountered!"; } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings