<html>
<head>
<title>PHP Beispiel: Datei Anzeigen</title>
</head>
<body>
<?php
$myFile = "code.php";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
echo nl2br(htmlentities($theData));
?>
</body>
</html>