Silly inline PHP script inset to have a utility print its own code.

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. :)

Contents of "$localscript"”; echo ”—The contents of "$localscript"—\n\n

\n";
    echo htmlspecialchars($contents);
    echo "
\n—End of "$localscript"—\n”; exit(); }
?>

(No, I do not endorse, nor condone the angry fruit salad which is highlight_file().) :)