摘要:
常用 strlen($string):得到字符串长度substr($string, $start[, $length]):截取字符串md5($string):计算字符串的md5的散列值,返回32位长度的字符串sha1($string):计算字符串的sha1的散列值,返回40位长度的字符串strrev 阅读全文
摘要:
#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 ... 阅读全文
摘要:
function file_write($file, $string, $type = 'array') { if(is_array($string)) { $type = strtolower($type); if($type == 'array') { $string = "<?php\n re 阅读全文
摘要:
1. 查看当前目录下有哪些文件和目录 > ls //list > ls -al //all list 显示当前目录中全部的子目录及文件的详细信息(以列表形式显示) 会显示隐藏文件 > ls -l //list显示当前目录一般文件的详细信息(以列表形式显示) > ls -a //显示当前目录全部文件信 阅读全文