langithitam
Fun Poster
- Messages
- 104
- Joined
- Oct 2, 2012
- Messages
- 104
- Reaction score
- 6
- Points
- 15
<?php
/****************************************************
Standard Template for Receivesms
****************************************************/
//-----------Step 1: Unload Data from DAPAT using GET/POST Method
//Noted that:
//1. Parameter 'details' contain MO from user
//2. Parameter Shortcode is Fixed to 15888
//3. Parameter smsid & guid is unique No gicen by Dapat
$keyword = $_GET['keyword']; //exmpl : POLIS
$smsid = $_GET['smsid']; //exmpl: 213239847326489
$shortcode = $_GET['shortcode']; //exmpl: 15888
$sender = urldecode($_GET['sender']); //+60191234567
$guid = $_GET['guid']; //exmpl: A23456785.SD1234435
$telco = $_GET['telco']; // exmpl: CELCOM
$details = strtoupper(urldecode($_GET['details'])); //exmpl: POLIS SAMAN PXX2344
//-------------------End of Step 1----------------------
//-----------Step 2: Retrieve Data from DB
//(1). Configure Connection string
//(2). Access Data and retrieve Data
//(3). Getting the Result from Database
//(4). Please assure that Retrieveing Data times is within 2~3 seconds
//(5). Assign the value of the Result as parameter $result
$result = ''; //Get the Result from the Database, base on User MO
//-------------------End of Step 2----------------------
//-----------Step 3: Send to DAPAT using Header
//(1). Sending the return value
//(2). Please assure that Response time must be within 3~4 seconds
//(3). Using POST/GET Header
$return = $keyword.' : '.$result;
header("HTTP/1.1 200 OK");
header("Deliver : 0");
header("StatusCode : 200");
header("Reply : ".$return);
//------------------End of Step 3------------------------
?>
Salam,
Ada tak sesiapa pernah buat coding untuk integrasi mysms macam ni.
Perlu bantuan untuk bagi contoh query dan setting result
/****************************************************
Standard Template for Receivesms
****************************************************/
//-----------Step 1: Unload Data from DAPAT using GET/POST Method
//Noted that:
//1. Parameter 'details' contain MO from user
//2. Parameter Shortcode is Fixed to 15888
//3. Parameter smsid & guid is unique No gicen by Dapat
$keyword = $_GET['keyword']; //exmpl : POLIS
$smsid = $_GET['smsid']; //exmpl: 213239847326489
$shortcode = $_GET['shortcode']; //exmpl: 15888
$sender = urldecode($_GET['sender']); //+60191234567
$guid = $_GET['guid']; //exmpl: A23456785.SD1234435
$telco = $_GET['telco']; // exmpl: CELCOM
$details = strtoupper(urldecode($_GET['details'])); //exmpl: POLIS SAMAN PXX2344
//-------------------End of Step 1----------------------
//-----------Step 2: Retrieve Data from DB
//(1). Configure Connection string
//(2). Access Data and retrieve Data
//(3). Getting the Result from Database
//(4). Please assure that Retrieveing Data times is within 2~3 seconds
//(5). Assign the value of the Result as parameter $result
$result = ''; //Get the Result from the Database, base on User MO
//-------------------End of Step 2----------------------
//-----------Step 3: Send to DAPAT using Header
//(1). Sending the return value
//(2). Please assure that Response time must be within 3~4 seconds
//(3). Using POST/GET Header
$return = $keyword.' : '.$result;
header("HTTP/1.1 200 OK");
header("Deliver : 0");
header("StatusCode : 200");
header("Reply : ".$return);
//------------------End of Step 3------------------------
?>
Salam,
Ada tak sesiapa pernah buat coding untuk integrasi mysms macam ni.
Perlu bantuan untuk bagi contoh query dan setting result