摘要: PHP Coding Standards This file lists several standards that any programmer adding or changingcode in PHP should follow. Since this file was added at a 阅读全文
posted @ 2017-02-23 14:37 ybbshanshan 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 本文转自:http://www.cnblogs.com/lemtree/articles/1676641.html。 就是APACHE自带的测试工具AB(apache benchmark).在APACHE的bin目录下。格式: ./ab [options] [http://]hostname[:po 阅读全文
posted @ 2016-09-20 18:18 ybbshanshan 阅读(613) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.cnblogs.com/jiqing9006/p/5584268.html但是 现在 微信已经 不支持 这个iframe 跳转的功能了。 阅读全文
posted @ 2016-09-12 09:55 ybbshanshan 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 加入百度统计代码:http://tongji.baidu.com/查看百度统计优化分析-》seo建议对每个页面的meta标签做修改 首页 title :来拍呀 - | 折扣好房你就来拍呀keyword: 来拍呀,折扣好房,专业房产导购,房产捡漏,详尽房产信息,司法拍卖,法院处理房,银行不良资产,... 阅读全文
posted @ 2015-10-28 15:57 ybbshanshan 阅读(620) 评论(0) 推荐(1) 编辑
摘要: 1: 下载 安装 xhprofwget http://pecl.php.net/get/xhprof-0.9.3.tgztar zxf xhprof-0.9.3.tgzcd xhprof-0.9.3cd extensionphpize (执行 此代码时报错,Cannot find autoconf.... 阅读全文
posted @ 2015-09-04 21:58 ybbshanshan 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 1:function GetLastError() // 假如报错的话,会输出报错信息2:function GetLastWarning ()// 输出 警告信息3:function SetServer ( $host, $port ) 链接 sphinx 索引数据 ,默认host and port... 阅读全文
posted @ 2015-08-27 18:56 ybbshanshan 阅读(194) 评论(0) 推荐(0) 编辑
摘要: source:数据的来源,数据是从什么地方来的。index:索引,当有数据源之后,从数据源处构建索引。索引实际上就是相当于一个字典检索。有了整本字典内容以后,才会有字典检索。searchd:提供搜索查询服务的(工具)。它一般是以守护进程的形式运行在后台的。indexer:构建索引的服务(工具)。当要... 阅读全文
posted @ 2015-08-27 15:54 ybbshanshan 阅读(956) 评论(0) 推荐(0) 编辑
摘要: 简单 使用php api 去查询 sphinx 的索引数据$sphinx=newSphinxClient(); $sphinx->SetServer('localhost',9312); //sphinx的主机名和端口 //设置返回结果集为php数组格式 $sphinx->SetAr... 阅读全文
posted @ 2015-08-27 14:32 ybbshanshan 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 原理:使用sphinx 中的indexer 生成索引数据service/web 端 利用searched 调用索引数据步骤:下载 sphinx:下载地址:http://sphinxsearch.com/downloads/release/ 这个可以根据自己电脑的系统来下载相应的安装包。ps:我是ma... 阅读全文
posted @ 2015-08-26 22:29 ybbshanshan 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 1MyISAM:这种引擎是mysql最早提供的。这种引擎又可以分为静态MyISAM、动态MyISAM 和压缩MyISAM三种: 静态MyISAM:如果数据表中的各数据列的长度都是预先固定好的,服务器将自动选择这种表类型。因为数据表中每一条记录所占用的空间都是一样的,所以这种表存取和更新的效率非常高。... 阅读全文
posted @ 2015-08-22 11:44 ybbshanshan 阅读(4536) 评论(0) 推荐(0) 编辑