摘要: 常用 strlen($string):得到字符串长度substr($string, $start[, $length]):截取字符串md5($string):计算字符串的md5的散列值,返回32位长度的字符串sha1($string):计算字符串的sha1的散列值,返回40位长度的字符串strrev 阅读全文
posted @ 2021-11-03 19:41 萄子 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 上传文件: 阅读全文
posted @ 2016-07-18 14:50 萄子 阅读(116) 评论(0) 推荐(0) 编辑
摘要: #MySQL数据源配置,详情请查看:http://www.coreseek.cn/products-install/mysql/ #请先将var/test/documents.sql导入数据库,并配置好以下的MySQL用户密码数据库 #源定义 source new { type = mysql sql_host = 127.0.0.1 sql_user ... 阅读全文
posted @ 2016-06-13 16:20 萄子 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-05-19 14:05 萄子 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-04-26 13:47 萄子 阅读(851) 评论(0) 推荐(0) 编辑
摘要: function file_write($file, $string, $type = 'array') { if(is_array($string)) { $type = strtolower($type); if($type == 'array') { $string = "<?php\n re 阅读全文
posted @ 2016-04-18 11:03 萄子 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1. 查看当前目录下有哪些文件和目录 > ls //list > ls -al //all list 显示当前目录中全部的子目录及文件的详细信息(以列表形式显示) 会显示隐藏文件 > ls -l //list显示当前目录一般文件的详细信息(以列表形式显示) > ls -a //显示当前目录全部文件信 阅读全文
posted @ 2016-04-11 14:54 萄子 阅读(140) 评论(0) 推荐(0) 编辑