摘要: public static function formatTime($time){ if (is_int($time)) { $time = intval($time); } elseif ($time instanceof Carbon) { $time = intval(strtotime($t 阅读全文
posted @ 2019-09-10 09:22 zlf2000 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 以下为引用的内容: <?php/** * 采集图片php程序** Copyright(c) 2008 by 小超(ccxxcc) All rights reserved** To contact the author write to {@link mailto:ucitmc@163.com}* * 阅读全文
posted @ 2019-08-29 10:16 zlf2000 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 一、上传原理与配置 1.1 原理 将客户端文件上传到服务器端,再将服务器端的文件(临时文件)移动到指定目录即可。 1.2 客户端配置 所需:表单页面(选择上传文件); 具体而言:发送方式为POST,添加enctype="multipart/form-data"属性,两者缺一不可(但是,优缺点并存,这 阅读全文
posted @ 2019-08-29 10:10 zlf2000 阅读(1239) 评论(0) 推荐(0) 编辑
摘要: $_SERVER 是一个包含了诸如头信息(header)、路径(path)、以及脚本位置(script locations)等等信息的数组。这个数组中的项目由 Web 服务器创建。不能保证每个服务器都提供全部项目;服务器可能会忽略一些,或者提供一些没有在这里列举出来的项目。一些常用的 $_SERVE 阅读全文
posted @ 2019-07-01 16:46 zlf2000 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 利用page计算分页 $p=input('p')?input('p'):1; $limit=6; $res=db('points_log')->where(['p_uid'=>$uid,'del_id'=>0])->field('p_log_id,p_uid,integral_source,inte 阅读全文
posted @ 2019-06-12 15:17 zlf2000 阅读(1191) 评论(0) 推荐(0) 编辑
摘要: 资料查看 转至 https://blog.csdn.net/h330531987/article/details/78319595 阅读全文
posted @ 2019-05-10 09:52 zlf2000 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 当图片写的传id的时候 用着方法存进数据库 阅读全文
posted @ 2019-04-22 13:54 zlf2000 阅读(137) 评论(0) 推荐(0) 编辑
摘要: //上传的数组字段 $note1 = input('note1'); $note2 = input('note2'); $note3 = input('note3'); $note4 = input('note4'); //判断图片是否上传 $imgs=[]; if($note1) array_pu 阅读全文
posted @ 2019-04-20 08:52 zlf2000 阅读(342) 评论(0) 推荐(0) 编辑
摘要: $user_id=$_GET['user_id']; if(!$user_id){ $arr=array('code'=>-1,'data'=>"用户不存在"); echo json_encode($arr);exit; } $time=time(); //$pay_sql=$db->query(" 阅读全文
posted @ 2019-02-20 14:33 zlf2000 阅读(229) 评论(0) 推荐(0) 编辑