摘要:
$url = 'http://xxxx.xx/xxxx'; $file = $_FILES['file']; $filename = $file['name']; $filepath = $file['tmp_name']; $filetype = $file['type']; $data = [' 阅读全文
摘要:
CREATE USER 'username'@'ip' IDENTIFIED BY 'password'; GRANT privileges ON database.table TO 'username'@'ip'; FLUSH PRIVILEGES; 其中: username替换为用户名,例如“b 阅读全文
摘要:
首先安装ORACLE的InstantClient环境:在这里下载 因为我需要连接11.2.0.4.0版本的ORACLE数据库,所以选取下载了basic-11.2.0.4.0-1.x86_64.rpm和devel-11.2.0.4.0-1.x86_64.rpm, 使用如下命令安装: rpm -ivh 阅读全文
摘要:
windows: fsutil file createnew [filename].[extension] [# of bytes] linux: fallocate -l 233M [filename].[extension] 阅读全文
摘要:
/** * xmsb_fastIn 通过创建临时表实现更高速的IN查询 * @return array */ function xmsb_fastIn ( $tb_name, // 要执行in查询的表名 $field_name, // 要执行in查询的字段名 $data_array, // in查询 阅读全文
摘要:
// 使用这一对Header,程序中所有输出内容会保存至一份excel中并下载 header('Content-type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disp 阅读全文
摘要:
安装 下载源码包:点击下载,本文以2.39.0版本为例。 解压缩: tar -zxf git-2.39.0.tar.gz 当前文件路径如下: 创建安装目录: mkdir /data/git/git2390 切换至解压缩目录: cd /data/git/git-2.39.0 配置安装路径: ./con 阅读全文
摘要:
在配置文件任意处加入: <DirectoryMatch .*\\.svn/.*> Deny From All </DirectoryMatch> 阅读全文
摘要:
sync echo 3 > /proc/sys/vm/drop_caches 阅读全文
摘要:
function xmsb_str2safe($str, $start, $length = 0, $key = '*') { // 通过$length的值来判断是否传入mb_substr函数的第三个参数$len $param = $length ? [$start, $length] : [$st 阅读全文