Skip to content

Instantly share code, notes, and snippets.

@caseyamcl
Created April 12, 2012 02:00
Show Gist options
  • Save caseyamcl/2364254 to your computer and use it in GitHub Desktop.
Save caseyamcl/2364254 to your computer and use it in GitHub Desktop.
Casey's Development Server Homepage
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Development Server!</title>
<style type='text/css'>
h1, h2 {
font-family: Verdana, sans-serif;
text-align: center;
}
.projects {
margin: 0;
padding: 0;
text-align: center;
}
.projects li {
margin: 0;
padding: 0;
list-style-type: none;
display: inline;
}
.projects li a {
display: inline-block;
padding: 4px 10px;
}
</style>
</head>
<body>
<h1>Welcome to the Development Server!</h1>
<h2>Now, get to work!</h2>
<hr />
<ul class="projects">
<?php foreach(array_diff(scandir(__DIR__), array('.', '..')) as $proj): ?>
<?php if (is_dir(__DIR__ . DIRECTORY_SEPARATOR . $proj)): ?>
<li><?php echo "<a href='$proj' title='Go to $proj'>$proj</a>"; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<hr />
<?php phpinfo(); ?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment