随笔分类 -  PHP

摘要:<?php function get_client_ip() { $ip = $_SERVER['REMOTE_ADDR']; if (isset($_SERVER['HTTP_CLIENT_IP']) && preg_match('/^([0-9]{1,3}\.){3}[0-9]{1,3}$/', $_SERVER['HTTP_CLIENT_IP'])) { ... 阅读全文
posted @ 2019-05-22 15:36 钧一 阅读(9331) 评论(0) 推荐(0)
摘要:json格式转为数组/对象 json_decode() json 对象/数组转json格式 json_encode() 阅读全文
posted @ 2019-05-18 16:04 钧一 阅读(14843) 评论(0) 推荐(0)
摘要:unset($data['captcha']); 阅读全文
posted @ 2019-05-05 17:14 钧一 阅读(1282) 评论(0) 推荐(0)
摘要:html部分 php部分 阅读全文
posted @ 2019-03-19 17:35 钧一 阅读(3638) 评论(0) 推荐(0)
摘要:serialize() 阅读全文
posted @ 2019-03-19 10:36 钧一 阅读(1820) 评论(0) 推荐(0)
摘要:打开网页http://lbsyun.baidu.com 滑到最底下点击申请密钥 复制密钥,找到下列代码第八行把密钥两字换成自己的密钥即可 <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" / 阅读全文
posted @ 2019-01-28 10:44 钧一 阅读(738) 评论(0) 推荐(0)
摘要:在接收值前面加上这段代码 ,修改格式 header("Content-Type: text/html;charset=utf-8"); 阅读全文
posted @ 2019-01-23 17:45 钧一 阅读(129) 评论(0) 推荐(0)