Created
April 24, 2012 23:09
-
-
Save RobSpectre/2484488 to your computer and use it in GitHub Desktop.
Easy example of SMS tree
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Every developer is important, Tyler. ;)
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
Dear god... PHP!