摘要:
用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 阅读全文
摘要:
示例http://files.cnblogs.com/johnsonshu/testpic.zip 阅读全文
摘要:
竟然在网上找到对策了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 阅读全文
摘要:
在配置文件的索引设置里加上 ngram_len = 1 ngram_chars = U+3000..U+2FA1F 阅读全文
摘要:
以前最主要的的是怕字符集乱了所以login的时候,一定要指定mysql -u XXX -p DBXXX --default-character-set=utf8然后 > source /home/XXX/XX.sql 阅读全文
摘要:
$("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 阅读全文
摘要:
简单的: 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); 阅读全文