Source Code for /public/appendix-samples/index.php
<?php
require('../inc/functions.php');
add_header('Appendix A: Further Examples');
?>
<p>
Additional samples of PHP code that didn't fit into the main lessons.
</p>
<h2>Related to <a href="/03-lists-and-loops/">Lesson 3</a>:</h2>
<ul>
<li>
<a href="/demo-harness.php?file=public/appendix-samples/times-tables-square.php">Times tables square</a>
</li>
<li>
<a href="/demo-harness.php?file=public/appendix-samples/fruity-links.php">Fruity links</a>
</li>
<li>
<a href="/demo-harness.php?file=public/appendix-samples/fruity-gallery-2.php">Gallery of .webp and .jpg images</a>
</li>
<li>
<a href="/demo-harness.php?file=public/appendix-samples/random-image-with-effect.php">Random image with effect</a>
</li>
</ul>
<h2>Related to <a href="/04-includes-and-functions/">Lesson 4</a>:</h2>
<ul>
<li>
<a href="/demo-harness.php?file=public/appendix-samples/includes-from-outside-webroot.php">Includes from outside the webroot</a>
</li>
</ul>
<h2>Related to <a href="/05-accepting-input/">Lesson 5</a>:</h2>
<ul>
<li>
<a href="fruits-and-filters-retaining-selection.php">Fruits and filters retaining selection</a>
</li>
<li>
<a href="fruits-and-filters-js-enhanced.php">Fruits and filters with JS-enhancement</a>
</li>
</ul>
<h2>Related to <a href="/06-retaining-state/">Lesson 6</a>:</h2>
<ul>
<li>
<a href="/demo-harness.php?file=public/appendix-samples/welcome-back-counter.php">Counting repeat visits in a cookie</a>
</li>
<li>
<a href="/demo-harness.php?file=public/appendix-samples/remember-my-name.php">Remembering the user's name</a>
</li>
</ul>
<?php
add_footer();
?>