![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
积累
hdh_yj
这个作者很懒,什么都没留下…
展开
-
代码片段1-时间
[code="java"] $res_time=$end_time-$start_time; switch ($res_time) { case $res_time 60 && $res_time 3600 && $res_time 3600 && $res_time原创 2011-09-27 16:41:55 · 78 阅读 · 0 评论 -
date() expects parameter 2 to be long的可能情况
[b] 出现date() expects parameter 2 to be long的可能情况 [/b] [list] [*]源代码在前一版本没事,但升级后出现警告,这就可能是服务器设置问题而并非程序本身问题,所以可以将date()改完@date()屏蔽警告提示 [*]date()中要需要的参数问题,如果是放入数据库中查询出的变量的话,要确保此字段有值,否则就会报这个错 [/li...原创 2012-01-06 10:23:25 · 4572 阅读 · 0 评论 -
浏览器图片下载
$img=$this->_post("pic");//要下载文件名 //在header确保前面没有任何输出 $ext = strrchr($img, ".");//得到$url的图片格式 $filename = date("dMYHis") . $ext;//用天月面时分秒来命名新的文件名 header('Content-type: image/jpeg'); hea...原创 2015-02-25 15:33:03 · 202 阅读 · 0 评论