php readfile() function
Translation results:
英[ri:d] 美[ri:d]
vt.& vi.Read, read aloud; show; study; understand
vt.read; show; read Understand, understand
n.read; read; read; Reed (name)
adj. to be read aloud; knowledgeable; well-read; knowledgeable
th Third person singular: reads Present participle: reading Past tense: read Past participle: read
php readfile() functionsyntax
Function: Output a file.
Syntax: readfile(filename,include_path,context)
Parameters:
Parameter | Description |
filename | Required. Specifies the file to be read. |
include_path | Optional. If you also want to search for files in include_path you can use this parameter and set it to true. |
context | Optional. Specifies the environment for a file handle. Context is a set of options that can modify the behavior of the stream. |
Description: This function reads a file and writes it to the output buffer. If successful, returns the number of bytes read from the file. On failure, returns false.
php readfile() functionexample
<?php echo readfile("./test.txt"); ?>