Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created April 24, 2012 23:09
Show Gist options
  • Save RobSpectre/2484488 to your computer and use it in GitHub Desktop.
Save RobSpectre/2484488 to your computer and use it in GitHub Desktop.
Easy example of SMS tree
<?php
header('Content-type: text/xml');
$message = $_REQUEST['Body'];
?>
<Response>
<Sms><?php
if ($message == "CHANNEL") {
echo "1) ROCK 102 2) Ethnic Channel #2 3) Another Station";
} else if ($message == "COUNTRY") {
echo "1) United States 2) Israel 3) Ireland";
} else {
echo "I did not understand. Try in UPPERCASE.";
}
?>
</Sms>
</Response>
@TylerBrock
Copy link

Dear god... PHP!

@RobSpectre
Copy link
Author

Every developer is important, Tyler. ;)

@TylerBrock
Copy link

Definitely, i just wanted to give you some shit. You don't get enough :-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment