What can I say? I’ve been bored and busy at the same time! Here’s a little excerpt. It does minimal testing, and outputs the script in a legable HTML format. Keep in mind that you’ll want to do all of your testing, and most likely not use globals like this; but this functions ‘as-is’, negating other code requirements, and it’s tiny! Call your script as http://mysite.dom/script.php?showcode – no, sorry, I don’t have it on anything here. :)
\n"; echo htmlspecialchars($contents); echo "\n—End of "$localscript"—\n