php open file for reading code example Example: php file read <?php echo file_get_contents("text.txt"); ?>