hchsk Posted May 4, 2009 Share Posted May 4, 2009 i don't know if anyone has ever used the free DOTGO texting service, but by using an index.cmrl file on ANY website, texts sent to DOTCOM with the first word being your domain name, will automatically be responded to in a way you define within index.cmrl i have successfully integrated this into my website, with one exception, i cannot for my life figure out how to pass parameters from the text to an engine script. i have even copy and pasted their example exactly (with the obvious domain name/url modifications), and attempted to use both perl and php scrips, to no avail. can anyone help me figure out the problem? i get a 500 internal service error (or 404 not found, which cannot possibly be true, depending on what i'm trying), but the problem is caused by my use of the variable $param['password'] which is supposed to grab the parameter named "password", i have btw, tried using double quotes, and no quotes, as well as as i stated before, the exact script posted in http://dotgo.com/support/documentation/doc0005.1.0/html-1/ any help, suggestions, is as always appreciated, as is your time Quote Link to comment Share on other sites More sharing options...
sbg-sm Posted May 11, 2009 Share Posted May 11, 2009 Try creating a file called dotgo.php on your webserver with the following: <?php $arg = $_REQUEST['sys_argument']; echo "<message><content>Hello world! You texted '$arg'</content></message>"; ?> And then in your index.cmrl, put something like this (assuming your domain is "yourdomainname.com"): <?xml version="1.0" encoding="UTF-8"?> <cmrl xmlns:dotgo="http://dotgo.com/cmrl/1.0"> <match pattern="*"> <engine href="http://yourdomainname.com/dotgo.php" /> </match> </cmrl> (assuming the engine dotgo.php is located at http://yourdomainname.com/dotgo.php) Once you've done that, you should be able to text "yourdomainname test" to DOTCOM (368266), and you should get back the message "Hello world! You texted 'test'". Quote Link to comment Share on other sites More sharing options...
keoflex Posted December 7, 2009 Share Posted December 7, 2009 check out dktext.com you can create a free account and they do all the cmrl programming for you. When you register they send you a cmrl file that links to dktext and all your keywords and responces are saved in the dktext system Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.