摘要: select * from t_user_e where love_type_ename like '%/_%' escape '/'http://ewan.iteye.com/blog/191049 阅读全文
posted @ 2012-06-29 09:48 johnsonshu 阅读(414) 评论(0) 推荐(0)
摘要: 用curl_error函数看到错误SSL certificate problem, verify that the CA cert is OK. Details:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed解决curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-s 阅读全文
posted @ 2012-06-29 09:47 johnsonshu 阅读(678) 评论(0) 推荐(0)
摘要: 示例http://files.cnblogs.com/johnsonshu/testpic.zip 阅读全文
posted @ 2012-06-29 09:39 johnsonshu 阅读(130) 评论(0) 推荐(0)
摘要: 竟然在网上找到对策了http://stackoverflow.com/questions/4894842/sphinx-install-error ./configure --with-unixodbc=no之后,make还是出错。结果发觉vps服务器给的内存太少了service XXX stop , 一顿整之后,make 成功了http://sphinxsearch.com/forum/view.html?id=5606 阅读全文
posted @ 2012-06-29 09:22 johnsonshu 阅读(164) 评论(0) 推荐(0)
摘要: 在配置文件的索引设置里加上 ngram_len = 1 ngram_chars = U+3000..U+2FA1F 阅读全文
posted @ 2012-06-29 09:21 johnsonshu 阅读(359) 评论(0) 推荐(0)
摘要: 以前最主要的的是怕字符集乱了所以login的时候,一定要指定mysql -u XXX -p DBXXX --default-character-set=utf8然后 > source /home/XXX/XX.sql 阅读全文
posted @ 2012-06-29 09:19 johnsonshu 阅读(119) 评论(0) 推荐(0)
摘要: $("input[name='radio_name'][checked]").val(); //选择被选中Radio的Value值 $("#text_id").focus(function(){//code...}); //事件 当对象text_id获取焦点时触发 $("#text_id").blur(function(){//code...}); //事件 当对象text_id失去焦点时触发 $("#text_id").select(); //使文本框的Vlaue值成选中状态$("inp 阅读全文
posted @ 2012-06-29 09:17 johnsonshu 阅读(176) 评论(0) 推荐(0)
摘要: 简单的: SetCookie("MyCookie", "Value of MyCookie"); 带失效时间的: SetCookie("WithExpire", "Expire in 1 hour", time()+3600);//3600秒=1小时 什么都有的: SetCookie("FullCookie", "Full cookie value", time()+3600, "/forum", ".phpuser.com", 1); 阅读全文
posted @ 2012-06-29 09:16 johnsonshu 阅读(233) 评论(0) 推荐(0)
摘要: 用gd网图片里写文字gd的bug是毫无疑问的。 问题是怎么解决。1:重新编译查找了一下php.ini的设置没有发现相关选项,于是又一个问题来了,这个默认编码是在哪里设置的呢?还是史文大哥牛,发现了PHP 编译参数里面有一个“–enable-gd-jis-conv”的参数十分可疑,Google一下果然发现了很多乱码问题与这个编译参数有关……官方给出的参数说明是“GD: Enable JIS-mapped Japanese font support.”,也就是让GD支持日文编码的字库(可恶,为什么没有支持中文编码字库的编译选项……PHP也国籍歧视么= =b),说白了开启了这个选项的话GD就会把TT 阅读全文
posted @ 2012-06-28 18:03 johnsonshu 阅读(460) 评论(0) 推荐(0)
摘要: 这个站点是最好用的http://converticon.com/ 阅读全文
posted @ 2012-06-28 18:01 johnsonshu 阅读(139) 评论(0) 推荐(0)