Check smsc on or off and choose smsc to send using PHP

Check smsc on or off and choose smsc to send using PHP SearchSearch

SMS & MMS Technical Forum » NowSMS Support - MMS & Advanced Issues (Product Support Only) » Check smsc on or off and choose smsc to send using PHP « Previous || Next »
Author Message
tantomi yahya
New member
Username: Thantomy

Post Number: 6
Registered: 01-2016
Posted on Monday, March 14, 2016 - 04:19 pm:   

hi thanks for answer my question before this..
i want to ask again, for the example i register 3 phone number to smsc..
(1)can we check is if they were connect or not using php.. i mean its need to show in html format.
and also
(2) can we choose which one that we will send using which phone...
i found my question 2 familiar like
http://support.nowsms.com/discus/messages/485/2582.html
oh and also i using
http://www.nowsms.com/doc/submitting-sms-messages/send-sms-text-message-with-php
to send message.. i dont see any variable to choose any smsc..
thank!
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5603
Registered: 08-2008
Posted on Tuesday, March 15, 2016 - 07:46 pm:   


quote:

(1)can we check is if they were connect or not using php.. i mean its need to show in html format.




Do you mean delivered? Delivery reports are possible, but complicated.

I can provide more info, but want to make sure I understand the question correctly.


quote:

(2) can we choose which one that we will send using which phone...
...
i dont see any variable to choose any smsc.




Good point. We should update that web page.

There is a newer example PHP script here: http://www.nowsms.com/download/sendsms2-php.txt

And a brief explanation of what changed here: http://www.nowsms.com/send-sms-from-php-script-updated

The newer script adds support for additional parameters such as SMSCRoute

--
Des
NowSMS Support
tantomi yahya
New member
Username: Thantomy

Post Number: 7
Registered: 01-2016
Posted on Wednesday, March 16, 2016 - 03:57 am:   

hi des
yes i mean delivery report.. and can i using php to insert it to mysql

i see a lot differences in new code. i need to change all old code with new code then?
i almost forgot.. can we use php to get connection with smsc modem? its connected or not..
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5605
Registered: 08-2008
Posted on Thursday, March 17, 2016 - 07:13 pm:   


quote:

i see a lot differences in new code. i need to change all old code with new code then?




Yes, replace the old SendSMS function with the new.


quote:

i almost forgot.. can we use php to get connection with smsc modem? its connected or not..




You can query the status using the XML Status Query interface. This link has a PHP example that looks at SMSC connection status: http://www.nowsms.com/nowsms-status-query-with-php


quote:

yes i mean delivery report.. and can i using php to insert it to mysql




There is a lot of info here: http://support.nowsms.com/discus/messages/1/69962.html

And here's a PHP example for parsing the Message ID from the SendSMS PHP function: http://support.nowsms.com/discus/messages/1/24868.html

--
Des
NowSMS Support

Add Your Message Here, or click here to create a new discussion topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Click here to create an account.
Username:
Password:
Options: Automatically activate URLs in message
Action:

Login Login / Register Logout Logout Search Last 30 Days Topics Topics