CodePress/content/demo.php
Edwin Noorlander 4d3c3391f7 Initial commit: CodePress CMS with blog content from noorlander.info
- Complete PHP CMS with Bootstrap 5
- Multi-format content support (MD/PHP/HTML)
- Dynamic navigation with collapsible folders
- Search functionality with snippets
- WCAG compliant design
- Blog content imported from Edwin Noorlander's personal blog
- README with project background and credits
2025-11-19 13:41:28 +01:00

39 lines
1014 B
PHP

<?php
$title = "Dynamic PHP Example";
$currentTime = date('Y-m-d H:i:s');
$visitorCount = rand(1000, 9999);
?>
<h2>PHP Dynamic Content</h2>
<p>This page demonstrates how PHP files can generate dynamic content.</p>
<div class="alert alert-info">
<strong>Current Time:</strong> <?php echo $currentTime; ?>
</div>
<div class="card">
<div class="card-header">
Statistics
</div>
<div class="card-body">
<p><strong>Visitor Count:</strong> <?php echo number_format($visitorCount); ?></p>
<p><strong>PHP Version:</strong> <?php echo phpversion(); ?></p>
<p><strong>Server Software:</strong> <?php echo $_SERVER['SERVER_SOFTWARE'] ?? 'Unknown'; ?></p>
</div>
</div>
<h3>Random Quote</h3>
<?php
$quotes = [
"Simplicity is the ultimate sophistication.",
"Code is poetry.",
"Less is more.",
"Keep it simple, stupid."
];
$randomQuote = $quotes[array_rand($quotes)];
?>
<blockquote class="blockquote">
<p><?php echo $randomQuote; ?></p>
</blockquote>