Gen. partnerAlgotech

PHP function readfile()

Outputs a file

|
September 11, 2019

Availability in PHP 4.0

Outputs a file

Parameters

Parameter Data type Default value Note
$filename string not The filename being read.
$use_include_path bool null, 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 resource null A context stream resource.

Return values

int

the number of bytes read from the file. If an error occurs, false is returned and unless the function was called as

Other resources

Official readfile function documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.