public function sendFile($src)
    {
        $pointer = fopen($src, 'r');

        if (!is_resource($pointer)) {
            throw new RuntimeException("Unable to load '$src' for sending.");
        }

        $result = fpassthru($pointer);

        fclose($pointer);

        return $result;
    }
public function sendFile($src)
    {
        $pointer = fopen($src, 'r');

        if (!is_resource($pointer)) {
            throw new RuntimeException("Unable to load '$src' for sending.");
        }

        $result = fpassthru($pointer);

        fclose($pointer);

        return $result;
    }
public function sendFile ( $ src ) { $ pointer = fopen ( $ src , 'r' ) ; if ( ! is_resource ( $ pointer ) ) { throw new RuntimeException ( "Unable to load '$src' for sending." ) ; } $ result = fpassthru ( $ pointer ) ; fclose ( $ pointer ) ; return $ result ; }
Directly output results from a file. This bypasses the output strategy altogether.

@param $src

@throws RuntimeException
@return int|bool
Directly output results from a file . This bypasses the output strategy altogether .