CaMykS
1.0-20231201
|
Functions | |
file_write ($file_path, $content, $deleteCache=false) | |
file_getPHPFileHeader ($desc="", $version="none") | |
file_getPHPFileFooter () | |
file_getHTAccessFileHeader ($desc="", $version="none") | |
file_getHTAccessFileEnder () | |
file_getContent ($file) | |
file_download ($file, $path) | |
file_delete ($file) | |
file_getMimeIconURL ($mime='', $size=32) | |
file_getMimeIcon ($mime='', $size=32, $styles='') | |
file_getTypeDescription ($mime='', $ext=null) | |
file_getMimeDescription ($mime='') | |
file_getFileSize ($size) | |
file_getMime ($file, $ext=null) | |
file_getImageSize ($file) | |
file_getImageType ($file) | |
file_isImage ($file) | |
file_readfile ($filename, $retbytes=true) | |
file_writeConfFile ($file_path, $desc, $datas) | |
file_search ($pattern=' *', $rootPath='./', $globFlags=0) | |
file_md5 ($file, $contextParams=array()) | |
file_isInPath ($file='', $path='') | |
_file_getMimeFromFinfo ($file) | |
_file_getMimeFromMimeContentType ($file) | |
_file_getMimeFromExtension ($file, $ext=null) | |
file_getFileIcon ($mime='', $size=32) | |
file_getPHPFileEnder () | |
Variables | |
const | FILE_ICON_EXTENSION 'gif' |
file_write | ( | $file_path, | |
$content, | |||
$deleteCache = false |
|||
) |
Write given file with given content.
string | $file_path | |
string | $content | |
boolean | $deleteCache |
file_getPHPFileHeader | ( | $desc = "" , |
|
$version = "none" |
|||
) |
Return CaMykS header for PHP file.
string | $desc | |
string | $version |
file_getPHPFileFooter | ( | ) |
Return CaMykS footer for PHP file.
file_getHTAccessFileHeader | ( | $desc = "" , |
|
$version = "none" |
|||
) |
Return CaMykS header for htaccess file.
string | $desc | |
string | $version |
file_getHTAccessFileEnder | ( | ) |
Return CaMykS ender for htaccess file.
file_getContent | ( | $file | ) |
Return file content.
string | $file |
file_download | ( | $file, | |
$path | |||
) |
Download file with curl.
string | $file | |
string | $path |
file_delete | ( | $file | ) |
file_getMimeIconURL | ( | $mime = '' , |
|
$size = 32 |
|||
) |
Return file type icon.
string | $mime | |
int | $size |
file_getMimeIcon | ( | $mime = '' , |
|
$size = 32 , |
|||
$styles = '' |
|||
) |
Return file type icon.
string | $mime | |
int | $size | |
string | $styles |
file_getTypeDescription | ( | $mime = '' , |
|
$ext = null |
|||
) |
Return file type description.
string | $mime | |
string | $ext |
file_getMimeDescription | ( | $mime = '' | ) |
Return file mime description.
string | $mime |
file_getFileSize | ( | $size | ) |
Return human readable file size.
int | $size |
file_getMime | ( | $file, | |
$ext = null |
|||
) |
Return file mime type.
string | $file | |
string | $ext |
file_getImageSize | ( | $file | ) |
Return image size in pixel as formatted string.
string | $file |
file_getImageType | ( | $file | ) |
Return image type
string | $file |
file_isImage | ( | $file | ) |
Check if file is an image.
string | $file |
file_readfile | ( | $filename, | |
$retbytes = true |
|||
) |
Equivalent to php readfile, without the 2Mo limitation on PHP 5.0.0 to 5.0.4 bug.
string | $filename | |
boolean | $retbytes |
file_writeConfFile | ( | $file_path, | |
$desc, | |||
$datas | |||
) |
Write a configration file.
string | $file_path | |
string | $desc | |
array | $datas |
file_search | ( | $pattern = '*' , |
|
$rootPath = './' , |
|||
$globFlags = 0 |
|||
) |
Search a file in a folder.
string | $pattern | |
string | $rootPath | |
integer | $globFlags |
file_md5 | ( | $file, | |
$contextParams = array() |
|||
) |
MD5_file replacement, to avoid 403 errors.
string | $file | |
array | $contextParams |
file_isInPath | ( | $file = '' , |
|
$path = '' |
|||
) |
Check if folder is in path
string | $file | |
string | $path |
|
private |
Return file mime from finfo method.
string | $file |
|
private |
Return file mime from content_mime_type method.
string | $file |
|
private |
Return file mime from file extension.
string | $file | |
string | $ext |
file_getFileIcon | ( | $mime = '' , |
|
$size = 32 |
|||
) |
string | $mime | |
int | $size |
file_getPHPFileEnder | ( | ) |
const FILE_ICON_EXTENSION 'gif' |