08 2020 档案

centos下gitlab安装使用
摘要:环境 阿里云,CentOS 6.8 x64。 设定源 新建 /etc/yum.repos.d/gitlab-ce.repo,内容为 [gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/g 阅读全文

posted @ 2020-08-22 23:52 孤灯引路人 阅读(202) 评论(0) 推荐(0) 编辑

laravel框架使用jwt
摘要:1.使用composer安装laravel里面的jwt工具包 composer require lcobucci/jwt 对应laravel里面安装包 2.jwt工具类 <?php /** * Created by PhpStorm. * User: season * Date: 2019/4/7 阅读全文

posted @ 2020-08-22 12:35 孤灯引路人 阅读(2171) 评论(0) 推荐(0) 编辑

加密的原理异或&置换&位移
摘要:1.异或代码 function encrypt($data,$key){ $content = $data ^ $key; return $content; } function decrypt($data,$key){ $content = $data ^ $key; return $conten 阅读全文

posted @ 2020-08-17 20:17 孤灯引路人 阅读(353) 评论(0) 推荐(0) 编辑

自定义php加密和解密方法
摘要:1.手动完成自定义加密解密方法 $content = "thisiscontent"; $key = "miyao"; //加密方法 function encode($string = '', $skey = 'wenzi') { $strArr = str_split(base64_encode( 阅读全文

posted @ 2020-08-17 20:07 孤灯引路人 阅读(606) 评论(0) 推荐(0) 编辑

laravel容器
摘要:容器,字面上理解就是装东西的东西。常见的变量、对象属性等都可以算是容器。一个容器能够装什么,全部取决于你对该容器的定义。当然,有这样一种容器,它存放的不是文本、数值,而是对象、对象的描述(类、接口)或者是提供对象的回调,通过这种容器,我们得以实现许多高级的功能,其中最常提到的,就是 “解耦” 、“依 阅读全文

posted @ 2020-08-15 11:50 孤灯引路人 阅读(369) 评论(0) 推荐(0) 编辑

php实现无限极分类
摘要:面试的时候被问到无限极分类的设计和实现,比较常见的做法是在建表的时候,增加一个PID字段用来区别自己所属的分类 $array = array( array('id' => 1, 'pid' => 0, 'name' => '河北省'), array('id' => 2, 'pid' => 0, 'n 阅读全文

posted @ 2020-08-04 17:08 孤灯引路人 阅读(323) 评论(0) 推荐(0) 编辑

php常见算法
摘要:1.使对象可以像数组一样进行foreach循环,要求属性必须是私有。(Iterator模式的PHP5实现,写一类实现Iterator接口) <?php class Test implements Iterator{ private $item = array('id'=>1,'name'=>'php 阅读全文

posted @ 2020-08-04 16:28 孤灯引路人 阅读(97) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示