Question in 2-way SMS

Question in 2-way SMS SearchSearch
Author Message
Kenny Han Jong Kwong
New member
Username: Kenny_h

Post Number: 4
Registered: 03-2009
Posted on Sunday, March 08, 2009 - 12:29 pm:   

Hello all,

I've read the thread about the 2-way SMS.

My question what other functions are there other than the "echo" shown in the example there.

Is the function same as that in PHP?

Define "Command to Execute" as "c:\winnt\system32\cmd.exe /c echo Echo @@FULLSMS@@"}
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 562
Registered: 08-2008
Posted on Monday, March 09, 2009 - 05:50 pm:   

Hi Kenny,

It can be anything that you want.

We used the echo command as an example, because it is simple function built into the Windows command line processor.

So, maybe it would help if I explain that "echo" is not a NowSMS command.

What this example is doing is spawning the Windows command line processor (CMD.EXE), and passing parameters to it. Instead of running CMD.EXE, this could be any program that you write.

If you are interested in interfacing with PHP, then instead of putting a command line executable program here, you can put an HTTP link (which is the preferred way of handling 2-way SMS requests). Every time NowSMS receives an SMS message, it then issues this HTTP request with the message details, so that you application or script can process it.

Here's a link that you might find helpful...it has some simple 2-way command examples that are PHP based...

http://support.nowsms.com/discus/messages/1/4520.html

--
Des
NowSMS Support