摘要: 具体思路:1.session时间设置'SESSION_OPTIONS' => array( 'expire' => 14400, //SESSION保存4小时),2.php采用cron回收session补充:gc是按概率回收,所以先不考虑参考:http://... 阅读全文
posted @ 2015-12-09 20:24 lifeinearth 阅读(2537) 评论(0) 推荐(0) 编辑
摘要: 参考链接:http://liufei888.blog.51cto.com/2625545/1306231 阅读全文
posted @ 2015-05-27 18:07 lifeinearth 阅读(231) 评论(0) 推荐(0) 编辑
摘要: $data = $this->fetch();//返回渲染后的页面$this->ajaxReturn($data, null, true);$this->display();//直接输出渲染后的页面=》刷新整个页面,输出时需指定显示位置,比如iframe等display的说明:http://www.... 阅读全文
posted @ 2015-02-09 19:01 lifeinearth 阅读(1381) 评论(0) 推荐(0) 编辑
摘要: $(".content").animate({opacity: 'hide'}, 200, function(){ $(".content").html(data.data);$(this).animate({opacity: 'show'}, { duration: 300 });}); 阅读全文
posted @ 2015-02-09 18:56 lifeinearth 阅读(2469) 评论(0) 推荐(0) 编辑
摘要: 添加meta:参考:http://blog.csdn.net/www3300300/article/details/12992489 阅读全文
posted @ 2015-02-09 18:47 lifeinearth 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 主机记录处填你希望的域名,常见的就是电脑网站填写www或者bbs等,手机网站您的话常见的就是wap或者m www:解析后的域名为www.qinggengyudu.com @:直接解析主域名 qinggengyudu.com *:泛解析,匹配其他所有域名 *.qinggengyudu.com记录... 阅读全文
posted @ 2015-02-05 13:08 lifeinearth 阅读(3888) 评论(0) 推荐(0) 编辑
摘要: 运行是PHPstudy提示80端口被占用,程序无法运行。然后,点击“确定”后,进入cmd的界面,在输入“netstat -ano”,再按回车键;按回车键后,会显示当前电脑中程序占用的端口和程序ID等等信息;看到第一条就是:0.0.0.0:80 这是80端口,是tcp协议的,后面PID是4;然后,我们... 阅读全文
posted @ 2015-01-24 08:16 lifeinearth 阅读(2660) 评论(0) 推荐(0) 编辑
摘要: 找到$pdf->SetFont 这一行,修改为:$pdf->SetFont(‘stsongstdlight’, ”, 20);假如你的网站源码为GBK格式 输出的PDF内容为乱码的话 就需要做个简单的转换了,把需要打出的中文文字做iconv(“gb2312//TRANSLIT”,’utf-8′,$s... 阅读全文
posted @ 2014-12-15 10:52 lifeinearth 阅读(1827) 评论(0) 推荐(0) 编辑
摘要: 在页面的最前页加上date_default_timezone_set(PRC); /*把时间调到北京时间,php5默认为格林威治标准时间*/date ()a: "am"或是"pm"A: "AM"或是"PM"d: 几日,两位数字,若不足则补零;从"01"至"31"D: 星期几,3个英文字母,如:"Fr... 阅读全文
posted @ 2014-12-02 10:55 lifeinearth 阅读(242) 评论(0) 推荐(0) 编辑
摘要: http://pcedu.pconline.com.cn/soft/gj/photo/1301/3142547.html 阅读全文
posted @ 2014-12-02 09:55 lifeinearth 阅读(863) 评论(0) 推荐(0) 编辑