摘要: 1.在登陆也存Session::set('codes', mt_rand(1000, 9999)); 2.在post提交数加上codes值一起提交,<input type="hidden" name="codes" value="{:session('codes')}">; 3.提交到方法的哪里写, 阅读全文
posted @ 2019-06-26 15:39 你我他哈 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 先安装redis到windows上 下载redis 根据自己系统下载对应版本下载redis https://github.com/microsoftarchive/redis/releases 安装redis比较简单,直接解压到C盘,重命名为redis,打开cmd 切换到redis目录下输入redi 阅读全文
posted @ 2019-11-26 16:40 你我他哈 阅读(171) 评论(0) 推荐(0) 编辑
摘要: php public function index() { $post=Request::instance()->request(); $post['set']=isset($post['set'])?$post['set']:'10'; $post['name']=isset($post['nam 阅读全文
posted @ 2018-10-12 16:59 你我他哈 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 加密方法(字符串 ,证书地址,证书密码)sha256是加密的算法 ()()()()()公钥加密私钥解密 function sign($data,$pfxpath,$pfxpwd) { $certs = array(); openssl_pkcs12_read(file_get_contents($p 阅读全文
posted @ 2018-10-09 15:27 你我他哈 阅读(1301) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JSONP 实例</title> <script src="http://cdn.static.runoob.com/libs/jquery/1.8.3/jquery.js"></ 阅读全文
posted @ 2018-10-09 14:29 你我他哈 阅读(218) 评论(0) 推荐(0) 编辑
摘要: //证书加密需要传的参数 字符串 证书地址 证书密码! function sign($data,$pfxpath,$pfxpwd) { $certs = array(); openssl_pkcs12_read(file_get_contents($pfxpath), $certs, $pfxpwd 阅读全文
posted @ 2018-08-27 09:22 你我他哈 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: 控制器 <?phpnamespace app\index\controller; use think\Db; class Index{ public function userlist() { $list=Db::name('users')->paginate(10,false, [ 'type' 阅读全文
posted @ 2018-08-16 15:27 你我他哈 阅读(1063) 评论(0) 推荐(0) 编辑
摘要: // 如果有HTTP_X_WAP_PROFILE则一定是移动设备 if (isset ($_SERVER['HTTP_X_WAP_PROFILE'])) { return true; } 阅读全文
posted @ 2018-08-16 15:24 你我他哈 阅读(1602) 评论(0) 推荐(0) 编辑
摘要: sql 文件导入数据时,不能从高版本的数据到低版本的数据库。 阅读全文
posted @ 2018-08-09 11:54 你我他哈 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 配站点域名比如 http://www.qoke.com D:\phpStudy\WWW\qoke 配资vhosts.conf 在phpstudy 打开配置文件里面 在里面加个 <VirtualHost *:80> DocumentRoot "D:\phpStudy\WWW\qoke" ServerN 阅读全文
posted @ 2018-08-02 18:18 你我他哈 阅读(228) 评论(0) 推荐(0) 编辑