TwistPHP Documentation

read

File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

readRead a file from the server, applies the appropriate file locks when reading from the file

Parameters

Name Type Description
$dirFilePathstringn/a
[$intBytesStart = 0]integern/a
[$intBytesEnd = null]integern/a
[$blCheckDelayedFiles = true]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$dirFilePath '/home/user/public_html/twist';
$intBytesStart 0;
$intBytesEnd null;
$blCheckDelayedFiles true;

//Call the function read with the example vars
Twist::File() -> read($dirFilePath$intBytesStart$intBytesEnd$blCheckDelayedFiles);