|
|
|
Áú¹®°ú ´äº¯
|
|
* ¸Å´º¾ó°ú ÀÚÁÖ ¹¯´Â Áú¹®À» ¸ÕÀú È®ÀÎ ÇϽðí, Áú´ä °Ô½ÃÆÇ¿¡¼ °Ë»öÈÄ Áú¹®¹Ù¶ø´Ï´Ù.
* Áú¹®½Ã¿¡´Â ÀÚ½ÅÀÇ °èÁ¤ ¾ÆÀ̵ð¿Í ȨÁÖ¼Ò¸¦ ÇÊÈ÷ ³²°ÜÁֽñ⠹ٶø´Ï´Ù.
* ¿¡·¯·Î ÀÎÇÑ ¹®Àǽà ¿¡·¯¸Þ¼¼Áö¸¦ ÇÊÈ÷ ÇÔ²² ³²°ÜÁֽñ⠹ٶø´Ï´Ù.
* Áú´ä °Ô½ÃÆÇÀº °ø°³°Ô½ÃÆÇÀ¸·Î °èÁ¤ ºñ¹Ð¹øÈ£ Á¤º¸¸¦ ³²±â½Ã¸é ¾ÈµË´Ï´Ù.
|
Read No. 40451 article |
2018-10-01 19:38:09 |
|
|
|
|
NickName |
indection [ȨÆäÀÌÁö] |
Subject |
aligo(¾Ë¸®°í) sms Àü¼Û °ü·Ã |
|
|
aligo(¾Ë¸®°í) sms Àü¼Û °ü·Ã Çؼ
curl À» ÀÌ¿ëÇØ sms Àü¼ÛÇÏ·Á´Âµ¥...
¼Ò½º°¡ ÀÛµ¿ÇÏÁö ¾Ê½À´Ï´Ù.
°°Àº ¼Ò½º¸¦ ´Ù¸¥ ¼¹ö¿¡¼ ÀÛµ¿ÇÏ´Ï ¾ÆÀÌÇÇ ÀÎÁõÀ» ÇÏÁö ¸øÇؼ SMS ¸¦ º¸³»Áö ¸øÇÏ¿´À¸³ª ¼Ò½º ÀÚü
´Â Àß ÀÛµ¿ Çß½À´Ï´Ù.
ÇÏÁö¸¸ netbflower.com ¿¡¼ ÀÛµ¿ ÇßÀ»¶§´Â ÀÛµ¿À» ÇÏÁö ¾Ê³×¿ä
function
aligoSMSSend($msg,$receiver,$destination,$subject="",$testmode_yn="N",$rdate="",$rtime=""){
// $_POST
// $_GET
if(!trim($msg)) return;
if(!trim($receiver)) return;
if(!trim($destination)) return;
$sms_url = "https://apis.aligo.in/send/"; // Àü¼Û¿äû URL
$sms['user_id'] = '111111'; // SMS ¾ÆÀ̵ð
$sms['key'] = '111111';//ÀÎÁõÅ°
$sms['msg'] = $msg; // ¸Þ¼¼Áö ³»¿ë
$sms['receiver'] = $receiver; // ¼ö½Å¹øÈ£
$sms['destination'] = $receiver.'|'.$destination; // ¼ö½ÅÀÎ %°í°´¸í% ġȯ
$sms['sender'] = '111111'; // ¹ß½Å¹øÈ£
if(trim($rdate)) $sms['rdate'] = $rdate; // ¿¹¾àÀÏÀÚ - 20161004 : 2016-10-04Àϱâ
ÁØ
if(trim($rtime)) $sms['rtime'] = $rtime; // ¿¹¾à½Ã°£ - 1930 : ¿ÀÈÄ 7½Ã30ºÐ
$sms['testmode_yn'] = $testmode_yn; // Y Àΰæ¿ì ½ÇÁ¦¹®ÀÚ Àü¼ÛX , ÀÚµ¿Ãë¼Ò(ȯºÒ) ó¸®
if(trim($subject)) $sms['subject'] = $subject; // LMS, MMS Á¦¸ñ (¹ÌÀԷ½à º»¹®Áß
44Byte ¶Ç´Â ¿£ÅÍ ±¸ºÐÀÚ Ã¹¶óÀÎ)
// $_POST['image'] = '/tmp/pic_57f358af08cf7_sms_.jpg'; // MMS À̹ÌÁö ÆÄÀÏ À§Ä¡
$host_info = explode("/", $sms_url);
$port = $host_info[0] == 'https:' ? 443 : 80;
$oCurl = curl_init();
curl_setopt($oCurl, CURLOPT_PORT, $port);
curl_setopt($oCurl, CURLOPT_URL, $sms_url);
curl_setopt($oCurl, CURLOPT_POST, 1);
curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($oCurl, CURLOPT_POSTFIELDS, $sms);
curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, FALSE);
$ret = curl_exec($oCurl);
curl_close($oCurl);
//echo $ret;
$retArr = json_decode($ret); // °á°ú¹è¿
// print_r($retArr);
return $retArr;
}
$_POST['smsmsg'] = "¸Þ¼¼Áö º¸³»±â";
$_POST['smshpval'] = "111111";
$_POST['smsnameval'] = "ÇãÇãÇã";
$aligoSMSSend = aligoSMSSend($_POST['smsmsg'],str_replace(Array("-","
"),Array("",""),trim($_POST['smshpval'])),$_POST['smsnameval']);
print_r($aligoSMSSend);
ÀÔ´Ï´Ù.
user_id , key °ªÀº 111111 À¸·Î º¯°æ Çß½À´Ï´Ù.
È®ÀÎ ºÎŹ µå¸³´Ï´Ù.
[ °ü·Ã±Û ]
|
|
Page Loading [ 0.48 Sec ]
SQL Time [ 0.46 Sec ]
|
|
|