摘要: 说明 t_split 是临时表,分割几个,里面id字段分别是1-5SELECT substring_index( substring_index( a.content, ',', b.id + 1 ), ',',- 1 ) product_id FROM t_exhibition_booth_cel 阅读全文
posted @ 2019-03-19 09:46 黑白配 阅读(1958) 评论(0) 推荐(0) 编辑
摘要: index.php文件如下 config.php文件内容如下 save.php文件如下 阅读全文
posted @ 2019-02-12 14:50 黑白配 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: function getNextMonth($date) {//获取指定日期下个月的第一天和最后一天 $arr = getdate(); if ($arr['mon'] == 12) { $year = $arr['year'] + 1; $month = $arr['mon'] - 11; $day = $arr['mday'];... 阅读全文
posted @ 2019-01-28 15:43 黑白配 阅读(3082) 评论(0) 推荐(0) 编辑
摘要: $appBody=file_get_contents('php://input');//app BODY传参 阅读全文
posted @ 2019-01-28 14:15 黑白配 阅读(328) 评论(0) 推荐(0) 编辑
摘要: //获取请求头信息接口 function getheaders() { $headers = array(); foreach ($_SERVER as $name => $value) { if (substr($name, 0, 5) == 'HTTP_') { $headers[str_replace(' ', '-', ucword... 阅读全文
posted @ 2019-01-28 14:13 黑白配 阅读(176) 评论(0) 推荐(0) 编辑
摘要: $coupon_list['data'] = Array ( Array ( 'id' => '03e34da1db28509b77e872739fe95ff6', 'amount' => 3, 'startMoney' => 3, 'expirationDate' => '... 阅读全文
posted @ 2019-01-24 11:06 黑白配 阅读(502) 评论(0) 推荐(0) 编辑
摘要: "", "table" => "", "where" => "", "order" => "", "limit" => "", "group" => "", "having" => "", ); //数据库参数配置 var $conf = array( 'lo... 阅读全文
posted @ 2019-01-21 17:09 黑白配 阅读(278) 评论(0) 推荐(0) 编辑
摘要: <?php$wx = new wx();if (!empty($_GET['cmd']) && $_GET['cmd'] == 'index') { //重新扫描登陆时,清空缓存 session_start(); unset($_SESSION); session_destroy(); $uuid 阅读全文
posted @ 2019-01-18 18:50 黑白配 阅读(3813) 评论(0) 推荐(0) 编辑
摘要: echo '运行前内存:'.round(memory_get_usage()/1024/1024, 2).'MB', ''; 此处放程序 echo '运行后内存:'.round(memory_get_usage()/1024/1024, 2).'MB', ''; 阅读全文
posted @ 2019-01-07 10:16 黑白配 阅读(2899) 评论(0) 推荐(0) 编辑
摘要: dingshi.php代码如下 <?php//php定时任务ignore_user_abort();//关闭浏览器后,继续执行php代码set_time_limit(0);//程序执行时间无限制,或者填写秒,到时间后自动停止$sleep_time = 3;//多长时间执行一次$switch = in 阅读全文
posted @ 2018-12-11 10:59 黑白配 阅读(156) 评论(0) 推荐(0) 编辑