$folder
$folder :
folder object of the File
Convenience class for reading, writing and appending to files.
read(bool|string|int bytes = false, mode = rb, force = false) :
Return the contents of this File as a string.
bool|string|int | bytes | where to start |
mode | ||
force | If true then the file will be re-opened even if its already opened, otherwise it won't |
string on success, false on failure
offset( offset = false, seek = SEEK_SET) :
Sets or gets the offset for the currently opened file.
offset | The $offset in bytes to seek. If set to false then the current offset is returned. |
|
seek | PHP Constant SEEK_SET | SEEK_CUR | SEEK_END determining what the $offset is relative to |
True on success, false on failure (set mode), false on failure or integer offset on success (get mode)
write( data, mode = w, bool|string force = false) :
Write given data to this File.
data | Data to write to this File. |
|
mode | Mode of writing. {@link http://php.net/fwrite See fwrite()}. |
|
bool|string | force | force the file to open |
Success
md5( maxsize = 5) :
Get md5 Checksum of file with previous check of Filesize
maxsize | in MB or true to force |
md5 Checksum {@link http://php.net/md5_file See md5_file()}