会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
忆殇之痕
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
6
7
8
9
10
11
12
下一页
2013年3月27日
jquery操作表单
摘要: 定位$(':input[name=put]')属性.val()获取内容//判断是否选中input$(':input[name=stel]').attr('checked')=='checked'
阅读全文
posted @ 2013-03-27 11:16 忆殇之痕
阅读(128)
评论(0)
推荐(0)
2013年3月26日
mysql中安全函数
摘要: 1、mysqli_real_escape_string //转义 SQL 语句中使用的字符串中的特殊字符,并考虑到连接的当前字符集
阅读全文
posted @ 2013-03-26 17:42 忆殇之痕
阅读(237)
评论(0)
推荐(0)
php操作beanstalkd
摘要: 一、实例化一个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 忆殇之痕
阅读(495)
评论(0)
推荐(0)
php操作httpsqs
摘要: 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 忆殇之痕
阅读(190)
评论(0)
推荐(0)
ubuntu安装操作HttpSQS高速队列
摘要: 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 忆殇之痕
阅读(224)
评论(0)
推荐(0)
linux常用报错解决
摘要: 一、configure: error: bzlib.h is required解决: 升级安装:apt-get install libbz2-dev
阅读全文
posted @ 2013-03-26 13:36 忆殇之痕
阅读(148)
评论(0)
推荐(0)
2013年3月25日
ajax长轮询实例
摘要: 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 忆殇之痕
阅读(372)
评论(0)
推荐(0)
2013年3月21日
微信开放平台一:申请公众平台和网站授权
该文被密码保护。
阅读全文
posted @ 2013-03-21 13:45 忆殇之痕
阅读(0)
评论(0)
推荐(0)
2013年3月20日
php操作memcache
摘要: 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 忆殇之痕
阅读(159)
评论(1)
推荐(1)
php操作sphinx
摘要: 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 忆殇之痕
阅读(391)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
下一页
公告