Skip to content

Instantly share code, notes, and snippets.

@OliPassey
Created June 20, 2023 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OliPassey/efebf2677dc90defa0662a7810857fa0 to your computer and use it in GitHub Desktop.
Save OliPassey/efebf2677dc90defa0662a7810857fa0 to your computer and use it in GitHub Desktop.
No, we don't have banner stands!
<!DOCTYPE html>
<html>
<head>
<title>No Banner Stands</title>
<style>
body {
text-align: center;
font-family: Arial, sans-serif;
}
h1 {
margin-top: 50px;
font-size: 28px;
}
p {
margin-top: 20px;
font-size: 18px;
}
.counter {
margin-top: 40px;
font-size: 24px;
color: #888;
}
</style>
<?php
// Function to update the visitor count
function updateVisitorCount() {
$countFile = 'visitor_count.txt';
$count = 0;
if (file_exists($countFile)) {
$count = (int)file_get_contents($countFile);
}
$count++;
file_put_contents($countFile, $count);
return $count;
}
// Get the visitor count
$visitorCount = updateVisitorCount();
?>
</head>
<body>
<h1>No, We Don't Have Any Banner Stands!</h1>
<p>Many people ask us about banner stands, but we don't have any.</p>
<p>Before you continue....</p>
<p>They are broken.</p>
<p>They use old branding.</p>
<p>They're not somewhere in the basement.</p>
<div class="counter">So far, <?php echo $visitorCount; ?> people did not believe we had banner stands.</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment