para leer puedes usar esto,,,
Código PHP:
<?php
if ($_GET['accion'] != ""){
$script = $_GET['accion'];
if (!$script) {
echo "<br /><b>ERROR: Se necesita nombre del fichero</b><br />";
} else {
if (ereg("(\.php|\.inc)$",$script)) {
echo "<h1>Fichero Codigo Fuente: $script</h1>\n<hr /></center>\n";
echo "<b>$script</b><br><br>";
highlight_file($script);
echo "<br><b>$script</b>";
} else {
echo "<h1>ERROR: Solo nombres de ficheros en Php</h1>";
}
}
echo "<hr /><center>Procesado: ". date("d-M-Y H:i:s", time());
}
?>
leer.php?accion=class.mail.inc.php