The code beneath, is one chunk of code (after "Three."), both <?php
and ?>
are parts excluded from parsing.
- One
- Two.
Three.
<?php
$images = glob("*.png"); $folderRoot = "http://" . $_SERVER["HTTP_HOST"] . dirname($_SERVER["PHP_SELF"]); foreach($images as $imageName) { $imageUrl = $folderRoot . "/" . $imageName; echo "<a href=" . $imageUrl . ">" . $imageName . "</a><br />"; }
?>