Created
November 18, 2011 18:36
-
-
Save jaboutboul/1377313 to your computer and use it in GitHub Desktop.
Hello Monkey 1.2 - (718) 701-8614
This file contains 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 | |
$people = array( | |
"+17182493243"=>"Jack", | |
"+14158952614"=>"Rob"); | |
if(!$name = $people[$_REQUEST['From']]) | |
$name = "Owl"; | |
header("content-type: text/xml"); | |
?> | |
<Response> | |
<Say>Hello <?php echo $name?></Say> | |
<Play>http://demo.twilio.com/hellomonkey/monkey.mp3</Play> | |
</Response> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment