Page 1 of 1

About cURL

Posted: Mon Aug 09, 2010 11:19 am
by nemesisphp
Can you help me about the coding part..

Actually sir, i am using pure php on my site..

can you give me some sample code here sir? so that i can easily understand how to send?

In receiving data.. i have implied my url on the smart service..

http://myurl/name_of_file.php?src=[SRC] ... ]&rrn=[RRN]

(This what it looks like how i attached my site)

So as a start.. i do have my code here

Code: Select all

<?php 

$src=$_GET['SRC']; //source 
$dst=$_GET['DST']; //destination 
$msg=$_GET['MSG']; //content 
$rrn=$_GET['RRN']; //reference number 

?>
So this is my current code in getting the data.. so whats next in replying?

I am aware that i'll be using cURL function.. right?

How to send this variables? need help thanks

By the way this is the instruction.. but i couldn't understand it well
On your side, provision InfoBoard's dispatcher URL. It will be used in sending out reply messages. Access it including the GET parameters and make sure that settings are also follows. Dispatcher URL: http://theinfoboard-smart.net/gw/dispatcher.woof

GET Parameters:
RRN is the random reference number, it must be the same rrn as in Step 1.
SRC is the access code (i.e 7001)
DST is the recipient of the message (i.e. 639209547958)
MSG is the actual reply message up to 420 characters, including non printable characters.
KYWRD is the primary keyword (i.e. infoboard)