摘要: 首先我们看一下关于mysql中的日志,主要包含:错误日志、查询日志、慢查询日志、事务日志、二进制日志;日志是mysql数据库的重要组成部分。日志文件中记录着mysql数据库运行期间发生的变化;也就是说用来记录mysql数据库的客 户端连接状况、SQL语句的执行情况和错误信息等。当数据库遭到意外的损坏... 阅读全文
posted @ 2015-07-22 23:45 踏雪无痕SS 阅读(1280) 评论(0) 推荐(0) 编辑
摘要: 简介在PHP的生命周期中词法分析(zend_language_scanner),将PHP代码转换为语言片段(Tokens)语法分析(zend_language_parser)将Tokens转换成简单而有意义的表达式编译(compiler),将表达式编译成Opocdes,返回zend_op_array... 阅读全文
posted @ 2015-07-15 13:25 踏雪无痕SS 阅读(878) 评论(0) 推荐(0) 编辑
摘要: 一、场景这个命令是错误的 find ./ -perm +700 |ls -l这样才是正确的find ./ -perm +700 |xargs ls -l 二、用法[root@localhost tmp]# xargs --helpUsage: xargs [-0prtx] [--interactiv... 阅读全文
posted @ 2015-07-06 11:02 踏雪无痕SS 阅读(1464) 评论(0) 推荐(0) 编辑
摘要: 在使用 JSON2.JS 文件的 JSON.parse(data) 方法时候,碰到了问题:throw new SyntaxError('JSON.parse');JSON.parse方法在遇到不可解析的字符串时,会抛出SyntaxError异常JSON.parse(text, reviver)Thi... 阅读全文
posted @ 2015-07-03 13:22 踏雪无痕SS 阅读(1144) 评论(0) 推荐(0) 编辑
摘要: 一、对系统进行更新 二、禁用SELINUX 这一步需要重启服务器 三、安装系统软件以及安装编译器 四、安装Google-perftools (使用tcmalloc 加速 mysql 和 nginx) centos 》 nginx 》gperftools》libunwind 依赖顺序, 先安装libu 阅读全文
posted @ 2015-07-03 01:26 踏雪无痕SS 阅读(1412) 评论(0) 推荐(0) 编辑
摘要: 1、准备[root@localhost src]# rpm -qa | grep -i pptppptp-setup-1.7.2-8.1.el6.i686pptp-1.7.2-8.1.el6.i6862、安装yum -y install pptp pptp-setup3、启动pptpsetup --... 阅读全文
posted @ 2015-06-26 22:42 踏雪无痕SS 阅读(201) 评论(1) 推荐(0) 编辑
摘要: 18位身份证标准在国家质量技术监督局于1999年7月1日实施的gb11643-1999《公民身份号码》中做了明确的规定。gb11643-1999《公民身份号码》为gb11643-1989《社会保障号码》的修订版,其中指出将原标准名称"社会保障号码"更名为"公民身份号码",另外gb11643-1999... 阅读全文
posted @ 2015-06-24 21:32 踏雪无痕SS 阅读(3693) 评论(0) 推荐(0) 编辑
摘要: 一、配置参数./configure --prefix=/data/app/php --with-config-file-path=/etc --with-mysql=/usr\--with-mysqli=/usr/bin/mysql_config --with-iconv-dir --with-fr... 阅读全文
posted @ 2015-06-17 23:52 踏雪无痕SS 阅读(1363) 评论(0) 推荐(0) 编辑
摘要: 一、安装xdebug1、编译安装xdebug,也可以使用pecl install xdebugwget http://xdebug.org/files/xdebug-2.3.2.tgztar -zxvf xdebug-2.3.2.tgzcd xdebug-2.3.2phpize./configu... 阅读全文
posted @ 2015-06-16 22:09 踏雪无痕SS 阅读(1934) 评论(0) 推荐(0) 编辑
摘要: 'example', 'imagePath'=>'./uploads/thumb/', 'echoType'=>'file')); * $th->setThumb($srcImage, 384, 300, 'prorate'); */ private $imagepr... 阅读全文
posted @ 2015-06-13 01:29 踏雪无痕SS 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 基本算法全排列算法有这么几种:(A)字典序法(B)递增进位制数法(C)递减进位制数法(D)邻位对换法废话不多说,直接上代码C代码#include #define swap(a,b){long temp=*a;*a=*b;*b=temp;}static int i=0; ... 阅读全文
posted @ 2015-06-12 22:34 踏雪无痕SS 阅读(586) 评论(0) 推荐(0) 编辑
摘要: #include #include #define ElemType inttypedef struct node{ ElemType data; struct node *next;}node,*link;void display(link list);//使用头插法link createH(l... 阅读全文
posted @ 2015-06-09 23:14 踏雪无痕SS 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 一、安装xhprof 二、配置PHP.ini 三、测试 如果查看[View Full Callgraph]的时候,却提示如下:Error: either we can not find profile data for run_id 4d7f0bd99a12f or the threshold 0. 阅读全文
posted @ 2015-06-04 23:29 踏雪无痕SS 阅读(999) 评论(0) 推荐(0) 编辑
摘要: 一、介绍匿名函数(Anonymous functions),也叫闭包函数(closures),允许 临时创建一个没有指定名称的函数。最经常用作回调函数(callback)参数的值。当然,也有其它应用的情况。二、使用场景1、动态调用静态类的时候3、赋值给一个普通的变量4、使用use从父域中继承_fac... 阅读全文
posted @ 2015-06-04 22:03 踏雪无痕SS 阅读(6661) 评论(0) 推荐(0) 编辑
摘要: 一、语法{EXPLAIN | DESCRIBE | DESC} tbl_name [col_name | wild]{EXPLAIN | DESCRIBE | DESC} [explain_type] SELECT select_optionsexplain_type: {EXTENDE... 阅读全文
posted @ 2015-06-02 22:54 踏雪无痕SS 阅读(428) 评论(0) 推荐(0) 编辑