Skip to content

Add files via upload #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Azure_index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?
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
{
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>PHP Application - BallotOnline POC</title>
<meta name="viewport" content="width=device-width">

</head>
<body>
<section class="congratulations">
<h1>Congratulations!</h1>
<p>Your BallotOnline POC PHP Web application is now running in your own dedicated environment in Microsoft Azure App Service!</p>
<p>You are running PHP version <?= phpversion() ?></p>
</section>
</body>
</html>
<?
}
?>