1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
<form action="?" method="post"> <input type="text" name="file" value="<?=$_POST['file'];?>" /> <input type="submit" /> </form> <?php if($_POST){ echo "<hr /><pre>".htmlentities(file_get_contents($_POST['file']))."</pre>"; } ?>