Skip to content
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

Update index.php #46

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
29 changes: 21 additions & 8 deletions src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,43 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Simple PHP App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Stylesheet Files -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<style>body {margin-top: 40px; background-color: #333;}</style>
<link href="assets/css/bootstrap-responsive.min.css" rel="stylesheet">
<!-- End of stylesheet files -->

<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
</head>

<body>
<div class="container">
<div class="hero-unit">
<h1>Simple PHP App</h1>
<h2>Congratulations</h2>
<p>Your PHP application is now running on a container in Amazon ECS.</p>
<p>The container is running PHP version <?php echo phpversion(); ?>.</p>
<h1>
Simple PHP App
</h1>
<h2>
Congratulations
</h2>
<p>
Your PHP application is now running on a container in Amazon ECS.</p>
<p>The container is running PHP version
<?php echo phpversion(); ?>.
</p>

<?php
$myfile = fopen("/var/www/my-vol/date", "r") or die("");
$myfile = fopen("/var/www/my-vol/date","r") or die("");
echo fread($myfile,filesize("/var/www/my-vol/date"));
fclose($myfile);
?>

</div>
</div>

<!-- Javascript Files -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<!-- End of Javascript Files -->

</body>

</html>