How to Read a file in PHP Posted in Polyglotbits on 13 of Aug, 2015

Reading a whole file is as easy as one function call in PHP. (Especially good if you want to read a small file, and want all the data in memory anyway).

<?php
echo file_get_contents("read.php");