How to read file in PHP
The readfile()
function reads a file and writes it to the output buffer.
Let us say, we have a text file called "myfile.txt", stored on the server, which have some text and content on it.
The readfile()
function is useful if all you want to do is open up a file and read its contents.
<?php
echo readfile("myfile.txt");
?>
Comments (0)
Post a Comment
Cancel