NowSms 2-way | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through July 28, 2010 ⬆ |
◄ ► |
Author | Message | |||
Fahad Ahmed New member Username: Fahad Post Number: 11 Registered: 06-2010 |
C:\Windows\System32\cmd.exe /c http://127.0.0.1:8800/2way.php?sender=@@SENDER@@&text=@@FULLSMS@@ Error Received on my cell " 'http; is not recognized as an internal or external command,operable program or batch file." 'text' is not recognized as an internal or external command operable program or batch file please help me out ?? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2210 Registered: 08-2008 |
Cmd.exe launches a Windows command prompt processor. You cannot issue an HTTP request from a command line prompt. If you are trying to use an HTTP request as a 2-way command, then just put the HTTP URL in the command field. I am suspicious though about your reference to 127.0.0.1:8800, which is usually the address of the NowSMS server. A PHP script cannot reside on the NowSMS server. A PHP script runs on a separate web server. Before you try to put a PHP script into NowSMS as a 2-way command, make sure you can connect to it using a standard web browser. If you are lost on the PHP setup overall, you may want to search this forum using a keyword of PHP and read through some of the different threads. If you are not familiar with PHP at all, you may want to consider some other scripting language that you are more familiar with such as ASP or Perl. Just keep in mind that if see types of scripts run on a separate web server. Windows scripting languages such as JScript and VBScript can run without a web server. Some other links that might help are here: http://www.nowsms.com/support/api.htm -- Des NowSMS Support | |||
Fahad Ahmed New member Username: Fahad Post Number: 12 Registered: 06-2010 |
hi des how can I put the HTTP URL in the command field ? and what did you mean by standard web browser ? and thanks for your Response | |||
Fahad Ahmed New member Username: Fahad Post Number: 13 Registered: 06-2010 |
hi Des I set SMS Command Prefix = * and Command To Execute = c:\windows\system32\cmd.exe /c echo Echo @@FULLSMS@@ this is working but if I wana execute some specific file against the Sms receive then what should I do | |||
Fahad Ahmed New member Username: Fahad Post Number: 14 Registered: 06-2010 |
hi des I have a php code but where I put this file in NowSms folder ? <?php header ("Content-Type: text/plain"); if (isset($_REQUEST['sender'])) { if (isset($_REQUEST['message'])) { echo "I recieved your message : " . $_REQUEST['message']; } else { echo "ERROR : 'message' parameter missing\r\n"; } } else { echo "ERROR : 'sender' parameter missing!\r\n"; } | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2224 Registered: 08-2008 |
PHP scripts run on a separate web server, NowSMS connects to them via an HTTP URL reference that points to that web server. If you need to run a script locally it needs to have a command line interface such as Windows scripting (VBScript or JScript). | |||
Fahad Ahmed New member Username: Fahad Post Number: 16 Registered: 06-2010 |
Thanks des Its working header issue solve by this link http://www.tech-recipes.com/rx/1489/solve-php-error-cannot-modify-header-informa tion-headers-already-sent/ |