Using PHP readfile() to Output File Contents to Browser or Another File
This article explains PHP's readfile() function, its syntax, return values, and demonstrates how to use it to output a file's contents to the browser or copy it to another file, including example code and handling of missing files.