会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
黑白配
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2019年3月19日
mysql 逗号分隔成多列数据
摘要: 说明 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 黑白配
阅读(1967)
评论(0)
推荐(0)
2019年2月12日
php 编辑config.php配置文件
摘要: index.php文件如下 config.php文件内容如下 save.php文件如下
阅读全文
posted @ 2019-02-12 14:50 黑白配
阅读(1242)
评论(0)
推荐(0)
2019年1月28日
php 获取指定日期下个月的第一天和最后一天
摘要: 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 黑白配
阅读(3158)
评论(0)
推荐(0)
app body传参 php接收值
摘要: $appBody=file_get_contents('php://input');//app BODY传参
阅读全文
posted @ 2019-01-28 14:15 黑白配
阅读(334)
评论(0)
推荐(0)
php 接受头信息
摘要: //获取请求头信息接口 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 黑白配
阅读(180)
评论(0)
推荐(0)
2019年1月24日
php二维数组多字段排序
摘要: $coupon_list['data'] = Array ( Array ( 'id' => '03e34da1db28509b77e872739fe95ff6', 'amount' => 3, 'startMoney' => 3, 'expirationDate' => '...
阅读全文
posted @ 2019-01-24 11:06 黑白配
阅读(539)
评论(0)
推荐(0)
2019年1月21日
php连贯操作原理带数据库配置(简单原理)
摘要: "", "table" => "", "where" => "", "order" => "", "limit" => "", "group" => "", "having" => "", ); //数据库参数配置 var $conf = array( 'lo...
阅读全文
posted @ 2019-01-21 17:09 黑白配
阅读(296)
评论(0)
推荐(0)
2019年1月18日
php实现个人微信给自己好友发送消息
摘要: <?php$wx = new wx();if (!empty($_GET['cmd']) && $_GET['cmd'] == 'index') { //重新扫描登陆时,清空缓存 session_start(); unset($_SESSION); session_destroy(); $uuid
阅读全文
posted @ 2019-01-18 18:50 黑白配
阅读(3911)
评论(0)
推荐(0)
2019年1月7日
记录一下,php获取占用内存
摘要: echo '运行前内存:'.round(memory_get_usage()/1024/1024, 2).'MB', ''; 此处放程序 echo '运行后内存:'.round(memory_get_usage()/1024/1024, 2).'MB', '';
阅读全文
posted @ 2019-01-07 10:16 黑白配
阅读(2911)
评论(0)
推荐(0)
2018年12月11日
php定时任务,亲测
摘要: dingshi.php代码如下 <?php//php定时任务ignore_user_abort();//关闭浏览器后,继续执行php代码set_time_limit(0);//程序执行时间无限制,或者填写秒,到时间后自动停止$sleep_time = 3;//多长时间执行一次$switch = in
阅读全文
posted @ 2018-12-11 10:59 黑白配
阅读(160)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告