Use readfile() to Output a File

Use readfile() to Output a File

The readfile() function reads a file and writes it to the output buffer. This is useful for serving files for download or display.

← Back to Tips List