folderweb/app/default/content/blog/2025-02-01-second-post/30-dynamic.php

19 lines
641 B
PHP
Raw Normal View History

<section>
<h2>PHP Section</h2>
<p>This section is dynamic PHP, rendered after the HTML above.</p>
<table>
<thead>
<tr><th>Property</th><th>Value</th></tr>
</thead>
<tbody>
<tr><td>Server time</td><td><?= date('H:i:s') ?></td></tr>
<tr><td>PHP version</td><td><?= PHP_VERSION ?></td></tr>
<tr><td>Page generated in</td><td><?= number_format((microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']) * 1000, 1) ?>ms</td></tr>
<tr><td>Operating system</td><td><?= PHP_OS ?></td></tr>
</tbody>
</table>
<p>Refresh the page to see the time update. This is live server-side output no JavaScript involved.</p>
</section>