05 2015 档案

摘要:使用 mb_detect_encoding() 函数来判断字符串是什么编码的。当在php中使用mb_detect_encoding函数进行编码识别时,很多人都碰到过识别编码有误的问题,例如对与GB2312和UTF- 8,或者UTF-8和GBK(这里主要是对于cp936的判断),网上说是由于字符短是,... 阅读全文
posted @ 2015-05-27 23:00 幻星宇 阅读(2718) 评论(0) 推荐(1) 编辑
摘要:1.原始方法:把事件写在file控件的onchange=""里面; 2.Jquery方法一: $('#fileId').live('change',function(){ //逻辑添加.... }); 3.Jquery方法二:onchange后,生成一个新input type file代替旧的,... 阅读全文
posted @ 2015-05-27 21:10 幻星宇 阅读(1316) 评论(0) 推荐(0) 编辑
摘要:1 $(function(){ 2 //添加判断图片是否存在操作 3 var nopic="__CDN_PATH_1__/public/kn/Plan/images/base_plan.png"; 4 $("img").each(function(){ 5 ... 阅读全文
posted @ 2015-05-25 18:34 幻星宇 阅读(803) 评论(0) 推荐(0) 编辑
摘要:服务器配置命令开始(蓝色为输入命令,灰色为反馈内容):Yum updateReboot;yum -y install mysql mysql-server mysql-devel php php-devel php-commonphp-gd php-curl php-prec php-xml php... 阅读全文
posted @ 2015-05-14 09:37 幻星宇 阅读(338) 评论(0) 推荐(0) 编辑
摘要:ServerAdmin m.koobird.com DocumentRoot "/var/www/html/xinyou" ServerName m.romy.com ErrorLog "logs/romy-m.koobird.com-error.log" CustomLog "logs/romy... 阅读全文
posted @ 2015-05-14 09:32 幻星宇 阅读(146) 评论(0) 推荐(0) 编辑
摘要:ttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName解决办法非常简单:#vim /web/apache/conf/httpd.conf (... 阅读全文
posted @ 2015-05-12 22:45 幻星宇 阅读(441) 评论(0) 推荐(0) 编辑
摘要:coreseek 做分页时找数据总量还真不好找。以为他会给一个方法(函数)什么的去获取,结果却不是。首先需要了解:num_matches:当前返回的结果数,sc->SetArrayResult(true);total: 最多返回结果数,取值取决于max_matches值和total_found值。如... 阅读全文
posted @ 2015-05-11 10:49 幻星宇 阅读(228) 评论(0) 推荐(0) 编辑
摘要:/** * 每天定时执行的sphinx索引增量更新 * @author guo.jing * 2015-05-08 * @param $indexerArr(执行要更新的索引) */ public function updateCoreseekIndex... 阅读全文
posted @ 2015-05-11 10:31 幻星宇 阅读(408) 评论(0) 推荐(0) 编辑
摘要:一、属性属性名称默认值说明autotrue设置为true当选择文件后就直接上传了,为false需要点击上传按钮才上传 。buttonClass”按钮样式buttonCursor‘hand’鼠标指针悬停在按钮上的样子buttonImagenull浏览按钮的图片的路径 。buttonText‘SELEC... 阅读全文
posted @ 2015-05-05 17:32 幻星宇 阅读(823) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示