摘要:
/** *检测文件名是否合法 * @param string $filename * @return boolean */ function checkFilename($filename){ $pattern = "/[\/,\*,<>,\?\|]/"; if (preg_match ( $pat 阅读全文
摘要:
<?php //Bytes/Kb/MB/GB/TB/EB /** * 转换字节大小 * @param number $size * @return number */ function transByte($size) { $arr = array ("B", "KB", "MB", "GB", " 阅读全文