PHP Example using highlight_file/show_source
See blog post at cachecrew.com/php-recipe-to-show-source/
Click here to show|hide source
<html>
<header>
<title>PHP Example using highlight_file/show_source</title>
</header>
<body>
See blog post at <a href="http://cachecrew.com/php-recipe-to-show-source/">cachecrew.com/php-recipe-to-show-source/</a>
<hr style="clear:both"/>
<!-- show source code, for your convenience -->
<a href="#" onClick="document.getElementById('source').style.display = document.getElementById('source').style.display=='none'?'block':'none'">
<b>Click here to show|hide source</b></a>
<div id="source" style="display:none">
<?php
// The following simply displays the file, presumably PHP source.
highlight_file(__FILE__);
?>
</div>
</body>
</html>