Menu Riverview Church

READFILE

Outputs a file

SYNTAX

readfile ( string $filename [, bool $use_include_path = FALSE [, resource $context ]] ) : int

PARAMETERS

filename

The filename being read.

use_include_path

You can use the optional second parameter and set it to TRUE, if you want to search for the file in the include_path, too.

context

A context stream resource.

RETURN

Returns the number of bytes read from the file on success, or FALSE on failure

EXAMPLES

Hello

PHP