$filename = $_GET['file'].".bib"; if(is_file($filename)) { $file = file($filename); foreach($file as $line) echo $line."
"; } ?>