Jump to content

dotgo script processing and arguments


hchsk

Recommended Posts

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

Link to comment
Share on other sites

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'".

Link to comment
Share on other sites

  • 6 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.