if ($_SERVER['REQUEST_METHOD'] === 'POST') { $file = '/tmp/sample-app.log'; $message = file_get_contents('php://input'); file_put_contents($file, date('Y-m-d H:i:s') . " Received message: " . $message . "\n", FILE_APPEND); } else { ?>
Your AWS Elastic Beanstalk PHP application is now running on your own dedicated environment in the AWS Cloud
You are running PHP version 7.2.7