英[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() function syntax
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() function example
<?php echo readfile("./test.txt"); ?>