Marrakech
New member Username: Walou
Post Number: 4 Registered: 11-2007
| | Posted on Saturday, January 19, 2008 - 01:05 am: | |
Hi all, i cann't up now get the http delivery report of an SMS and store it into an sql database. i'm sending sms via http as bellow: http://127.0.0.1:8800/?user=testuser&password=testpass&Text=MyMessgae&PhoneNumbe r=%2B3311111&receiptdelivered=yes "testuser" and "testpass" are the account parameters for web interface access. I also defined an 2-Way command to execute: http://localhost:8800/2-way.php?sender=@@SENDER@@&message=@@FULLSMS@@&DateR=@@MS GDATE@@&TimeR=@@MSGTIME@@. Then UNcheck the "Command to returns reponse text". Under the SMSGW file, i indicate the vlaue : TrackHTTPReceipts=Yes…. I the SMSIN file, every ting sames to be ok « stat:DELIVRD err:000 » But, alwayse the same probleme, impossible to execute the 2-way and store the result into an sql database. This is an example of the 2-way.php script : <? // Fill default values // Update BDD $champs = array( array('MessageID', $_REQUEST['messageid']), array('Recule', $_REQUEST['MSGDATE']), array('heurereception', $_REQUEST['MSGTIME']), array('sender', $_REQUEST['sender']), array('message', $_REQUEST['message']), ); $_SESSION[SMS]['CLIENT']['id']=xxx; $A = new SQL('2way'); $A->updateSql($fields," id='{$_SESSION[SITE_CONFIG]['CLIENT']['id']}' LIMIT 1 "); ?> I also tried this one too : <? header ("Content-Type: text/plain"); if (isset($_REQUEST['sender'])) { if (isset($_REQUEST['text'])) { echo "I recieved your message : " . $_REQUEST['text']; } else { echo "ERROR : 'text' parameter missing\r\n"; } } else { echo "ERROR : 'sender' parameter missing!\r\n"; } ?> Plz, really need a big help…
|