viewSource
Current Version: 1.0
Last Revision: 12.22.02
Language: PHP & Tcl versions available.

This PHP script opens any page within the pageroot of the server, replaces <'s and >'s with &lt; and &gt; respectively, then outputs it to the page between <pre> tags. It takes two parameters through the url. "f" for the path and file name, and "a" for the name to display on the page. If no params are passed, it defaults to the source of index.php in the pageroot.

The exact same code in Tcl can be found here.