<?php $file_path=$_GET['file_path']; $fileContents=file_get_contents($file_path); $txt=htmlentities($fileContents); $txt = ereg_replace( "\n", '<br />', $txt ); echo $txt; ?>
info at phpclasses dot org