上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 定位$(':input[name=put]')属性.val()获取内容//判断是否选中input$(':input[name=stel]').attr('checked')=='checked' 阅读全文
posted @ 2013-03-27 11:16 忆殇之痕 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1、mysqli_real_escape_string //转义 SQL 语句中使用的字符串中的特殊字符,并考虑到连接的当前字符集 阅读全文
posted @ 2013-03-26 17:42 忆殇之痕 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 一、实例化一个beanstalkd类$pheanstalk = new Pheanstalk('127.0.0.1');二、操作队列加入队列$pheanstalk->useTube('new_userh_ids'); //创建一个队列名称$pheanstalk->put(rtrim($ids,',')); //将内容加入到该队列读取队列$job = $pheanstalk->watch('sinav_db')->ignore('default')->reserve(5); //监视指定 阅读全文
posted @ 2013-03-26 16:16 忆殇之痕 阅读(485) 评论(0) 推荐(0) 编辑
摘要: php初始化httpsqs:include_once("httpsqs_client.php");$httpsqs = new httpsqs("127.0.0.1", 1218, "mypass123", "utf-8");php操作httpsqs:常用命令操作入队:$result = $httpsqs->put('xiongwei2', 'test1');获取队列中内容$result=$httpsqs->get('xiongwei2');查看队列信息$ 阅读全文
posted @ 2013-03-26 14:19 忆殇之痕 阅读(181) 评论(0) 推荐(0) 编辑
摘要: HTTPSQS安装ulimit -SHn 65535wget http://httpsqs.googlecode.com/files/libevent-2.0.12-stable.tar.gztar zxvf libevent-2.0.12-stable.tar.gzcd libevent-2.0.12-stable/./configure --prefix=/usr/local/libevent-2.0.12-stable/makemake installcd ../wget http://httpsqs.googlecode.com/files/tokyocabinet-1.4.47.ta 阅读全文
posted @ 2013-03-26 13:43 忆殇之痕 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 一、configure: error: bzlib.h is required解决: 升级安装:apt-get install libbz2-dev 阅读全文
posted @ 2013-03-26 13:36 忆殇之痕 阅读(135) 评论(0) 推荐(0) 编辑
摘要: html页面:<script> $(function(){ function test(){ $url="xx.php"; comet=$.post($url,function(data){ if(data==null){ comet.abort(); //关闭之前的comet ajax请求 test(); //如果返回空则继续请求 return; } //$('#sub').append('<div>'+dat... 阅读全文
posted @ 2013-03-25 17:52 忆殇之痕 阅读(366) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-03-21 13:45 忆殇之痕 阅读(0) 评论(0) 推荐(0) 编辑
摘要: ubuntu下安装memcache:安装Memcache服务端:sudo apt-get install memcached启动memcache服务端:memcached -d -m 128 -p 11111 -u root安装Memcache客户端(php扩展):sudo apt-get install php5-memcache安装完以后我们需要在php.ini里进行简单的配置,打开/etc/php5/apache2/php.ini文件在末尾添加如下内容:[Memcache]; 一个高性能的分布式的内存对象缓存系统,通过在内存里维护一个统一的巨大的hash表,; 它能够用来存储各种格式的数 阅读全文
posted @ 2013-03-20 16:57 忆殇之痕 阅读(150) 评论(1) 推荐(1) 编辑
摘要: ubuntu下的sphinx安装sphinx安装:sudo apt-get install sphinxsearch配置sphinx进入/etc/sphinx/searchcp sphinx-min.conf.disc sphinx.conf(sphinx-min.conf.disc是模板文件sphinx.conf是配置文件)配置文件讲解:source src1:主数据源index test1 主数据索引indexer 索引器大小searchd:开启服务配置(端口等)建立索引:indexer --all --rotate 可以在不停止sphinx下重新索引创建主索引: bin/indexer 阅读全文
posted @ 2013-03-20 16:55 忆殇之痕 阅读(385) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页