MessageID

MessageID SearchSearch
Author Message
vagner crescencio
New member
Username: Vagner

Post Number: 1
Registered: 08-2013
Posted on Thursday, August 22, 2013 - 12:20 am:   

Good evening, I'm saving the 'MessageID' in mysql:


<?php
$x = SendSMS($ip_server, 8800, "", "", $fone, $msg);
mysql_query("INSERT INTO sms (messageID) VALUES ('$x')");
?>

But the record looks like this:

HTTP/1.0 200 OK
Connection: close
Content-Type: text/html
Expires: Tue, 01 Jan 1980 1:00:00 GMT
Cache-Control: no-cache
Content-Length: 315

<HTML>
<HEAD><TITLE>Message Submitted</TITLE></HEAD>
<BODY bgcolor=#cce8ff>
<p>
Message Submitted
<p>
<a href="javascript:history.back()">Continuar</a>
<p>
<pre><small>
MessageID=5216D4C0.req, Recipient=+000000000000
</small></pre>
<p>
</BODY>
</HTML>

how to get only the 'messageID'? Thank you.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4602
Registered: 08-2008
Posted on Thursday, August 22, 2013 - 01:34 am:   

Hi Vagner,

If you are working in PHP, there is an example that parses this information in the following thread:
http://support.nowsms.com/discus/messages/1/24868.html

--
Des
NowSMS Support
vagner crescencio
New member
Username: Vagner

Post Number: 2
Registered: 08-2013
Posted on Thursday, August 22, 2013 - 01:41 am:   

Ok I used the function 'strpos ();'. Now as I keep in the bank if the 'sms' has been received? I use the '2-way '? Thank you.