I took this one step further! Here's a script that shows
itself in a text box!
CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Self</title>
</head>
<body>
<textarea cols="80" rows="30"><?php
$fh = fopen($_SERVER['SCRIPT_FILENAME'], "r");
if ($fh) {
while (!feof($fh)) {
$c = fread($fh, 1);
echo htmlspecialchars($c, ENT_QUOTES);
}
}
fclose($fh);
?></textarea>
</body>
</html>
Amazing!