The readfile() function reads a file and writes it to the output buffer.
This function returns the number of bytes read on success, or false and an error on failure.
Syntax
readfile(filename,include_path,context)
Example
$filename = 'content.txt';
if (!readfile($filename)) {
echo 'Could not open file';
}
Copyright ©2022 coderraj.com. All Rights Reserved.