Common FILE routines
version | 1 |
---|---|
package | wikindx4\core\file |
author | Mark Grimshaw |
__construct()
createFileName(string $dirName, string $string, string $extension) : array
If directory based on session ID does not exist, create it.
string
string
File contents
string
File extension
array
(filename, full filepath)fileMaxSize() : int
int
fileStore(string $dirName, string $name) : boolean
string
string
boolean
fileUpload(string $filename) : array
string
array
(filename, hash, type, size)listFiles() : array
array
(filesDir, fileDeleteSecs, fileArray)readfile_chunked(string $file)
From http://uk3.php.net/function.readfile
string
setHeaders(string $type, int $size, string $filename)
string
int
string
tidyFiles()
return_bytes(string $val) : int
string
int
$config
$db
$filesDir
$session