<?php $file = "sample.txt"; $show = file_get_contents($file); ?> <html> <head> <title>Bla</title> </head> <body> <textarea rows="21" cols="41"><? echo $show ?></textarea> </body> </html>