In this tutorial we’ll receive and reply to a text message in PHP. If you’re the type who likes to skip to the punchline, create a file named message.php and paste in this code:
$number = $_POST['From'];
$body = $_POST['Body'];
Hello <?php echo $number ?>.
You said <?php echo $body ?>
To learn more about how this works, watch this one minute video, or just keep reading. Twilio’s HTTP Request When someone texts your Twilio number, Twilio makes an HTTP request to your app. Your app parses… Read More