|
|
|
Áú¹®°ú ´äº¯
|
|
* ¸Å´º¾ó°ú ÀÚÁÖ ¹¯´Â Áú¹®À» ¸ÕÀú È®ÀÎ ÇϽðí, Áú´ä °Ô½ÃÆÇ¿¡¼ °Ë»öÈÄ Áú¹®¹Ù¶ø´Ï´Ù.
* Áú¹®½Ã¿¡´Â ÀÚ½ÅÀÇ °èÁ¤ ¾ÆÀ̵ð¿Í ȨÁÖ¼Ò¸¦ ÇÊÈ÷ ³²°ÜÁֽñ⠹ٶø´Ï´Ù.
* ¿¡·¯·Î ÀÎÇÑ ¹®Àǽà ¿¡·¯¸Þ¼¼Áö¸¦ ÇÊÈ÷ ÇÔ²² ³²°ÜÁֽñ⠹ٶø´Ï´Ù.
* Áú´ä °Ô½ÃÆÇÀº °ø°³°Ô½ÃÆÇÀ¸·Î °èÁ¤ ºñ¹Ð¹øÈ£ Á¤º¸¸¦ ³²±â½Ã¸é ¾ÈµË´Ï´Ù.
|
Read Reply from No. 40451 article |
2018-10-01 20:24:49 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
Re: aligo(¾Ë¸®°í) sms Àü¼Û °ü·Ã |
|
|
public_html/.htaccess ÆÄÀÏÀÇ À̸§À¸·Î
php_flag display_errors on
php_flag html_errors on
À§ ³»¿ëÀ» ½É¾î, Á¢±ÙÀ» ÇϽÅÈÄ, ¾î¶² ¿¡·¯°¡ ³ª½Ã´ÂÁö üũ¸¦ Çغ¸¼ÌÀ¸¸é ÇÕ´Ï´Ù.
http://yes.byus.net/phpinfo.html ÆäÀÌÁö¿¡¼ php ȯ°æÀ» üũÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
indection wrote..
: 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.25 Sec ]
SQL Time [ 0.23 Sec ]
|
|
|