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"/>

<a href="#" onClick="tag = this.nextElementSibling; tag.style.display = tag.style.display=='none'?'block':'none'">
<b>Click here to show|hide source</b></a>
<div style="display:none">
    <?php 
    
// The following simply displays the file, presumably PHP source. 
    
highlight_file(__FILE__); 
    
?>
</div>

</body>
</html>