自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(59)
  • 资源 (4)
  • 收藏
  • 关注

原创 go成长之路

1根目录modules下user模块

2020-11-28 16:47:30 116

原创 mac常用软件

gitvscodeswitchhostsourcetree钉钉网易邮箱谷歌浏览器腾讯会议链接: https://pan.baidu.com/s/1NDMHS8aaqSg4EyToriSSMA 提取码: 2fvv

2020-08-04 09:40:41 166

转载 mysql查询的时候默认排序不是主键自增的顺序?

一直都有一种错觉,认为查询出来的数据如果没有设置排序的话,就是按照id(主键)自增的顺序排列,也就是id的正序排列。但是偶然的一个机会,发现了如果没有加排序的话,出现的不是想象中的自增顺序(逻辑顺序),那是什么顺序呢?答案就是物理存储顺序。虽然一般情况,物理顺序和逻辑顺序保持一致,但是有个前提,那就是再你不删不改的情况下。如果你细心观察过会发现,当你进行大量的删除操作的时候,虽然数据量会减少,...

2019-12-31 11:52:46 1277

原创 PhpStorm + Xdebug (mac 版)

1.检查Xdebug是否安装 首先需要检查Xdebug是否已经安装,如果已安装则跳过此步骤。方法非常简单,可以直接打开phpinfo()页面,搜索xdebug。如果搜索结果如下图的话,说明已经安装了Xdebug:2.安装Xdebug (ps:xdebug dev版 有bug)sudo apt-getinstall php5-xdebug3.在php.ini 配置...

2019-10-31 15:16:24 169

原创 小程序-获取用户信息

用button来授权登录<button wx:if="{{canIUse}}" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">授权登录</button><view wx:else>请升级微信版本</view>Page({ data: { canIUse: ...

2019-10-24 15:53:40 513

原创 PHP SAML SP端

SAML2.0介绍https://www.cnblogs.com/shuidao/p/3463947.htmlhttps://www.jianshu.com/p/636c1ee16ebaphp-samlhttps://github.com/onelogin/php-saml①使用composer直接引入composer require onelogin/php-saml...

2019-10-18 17:53:48 2882 2

原创 laravel 错误

RuntimeExceptionThe only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.inEncrypter.php(line 43)https://blog.csdn.net/a369405354/article/details/84935024Fatal...

2019-09-12 17:55:04 388

原创 Laravel VerifyCsrfToken csrftoken 验证

取消csrftoken验证/laravel/app/Http/Middleware/VerifyCsrfToken.php/** * The URIs that should be excluded from CSRF verification. * * @var array */protected $except = [ // 'myhomeland/*', ...

2019-08-28 15:34:29 634

原创 mac 环境搭建

1. nginx下载prcehttp://www.pcre.org下载 nginxhttps://www.jianshu.com/p/f9690b5da07f把nginx和prce 放到同一目录 例如:都放到Documents下cd/Users/mac/Documents/nginx-1.5.9sudo./configure--prefix=/usr/local...

2019-08-24 08:29:47 344

原创 UTF-8 BOM

在UCS 编码中有一个叫做”ZERO WIDTH NO-BREAK SPACE“的字符,它的编码是FEFF。而FFFE在UCS中是不存在的字符,所以不应该出现在实际传输中。UCS规范建议我们在传输字节流前,先传输 字符”ZERO WIDTH NO-BREAK SPACE“。如果接收者收到FEFF,就表明这个字节流是大字节序的;如果收到FFFE,就表明这个字节流是小字节序的。因此字符”ZERO ...

2019-07-29 14:19:27 125

原创 环境搭建

安装 brew首先要通过如下命令安装 brew/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"安装 phpbrew install php7.2

2019-07-26 18:54:23 79

转载 Laravel源码入门-启动引导过程(十)RegisterProviders

上篇:Laravel源码入门-启动引导过程(九)RegisterFacades上文介绍了 HandleExceptions,在 《Laravel源码入门-启动引导过程(五)$kernel->handle($request)》中第五个要载入的是RegisterProviders,也就是 Foundation\Http\Kernel::bootstrapers[] 的第五个\Illum...

2019-07-15 12:03:34 837

转载 Laravel源码入门-启动引导过程(九)RegisterFacades

上篇:Laravel源码入门-启动引导过程(八)HandleExceptions上文介绍了 HandleExceptions,在 《Laravel源码入门-启动引导过程(五)$kernel->handle($request)》中第四个要载入的是RegisterFacades,也就是 Foundation\Http\Kernel::bootstrapers[] 的第四个\Illumi...

2019-07-15 12:02:39 305

转载 Laravel源码入门-启动引导过程(八)HandleExceptions

上篇:Laravel源码入门-启动引导过程(七)LoadConfiguration上文介绍了 LoadConfiguration,载入 config/*.php配置,在 《Laravel源码入门-启动引导过程(五)$kernel->handle($request)》中第三个要载入的是HandleExceptions,也就是 Foundation\Http\Kernel::bootst...

2019-07-15 12:02:01 1305

转载 Laravel源码入门-启动引导过程(七)LoadConfiguration

上篇:Laravel源码入门-启动引导过程(六)LoadEnvironmentVariables上文介绍了 LoadEnvironmentVariables,载入 .env 环境配置,在 《Laravel源码入门-启动引导过程(五)$kernel->handle($request)》中第二个要载入的是LoadConfiguration,也就是 Foundation\Http\Kerne...

2019-07-15 12:01:29 926

转载 Laravel源码入门-启动引导过程(六)LoadEnvironmentVariables

上篇:Laravel源码入门-启动引导过程(五)$kernel->handle($request)第一个要载入的是LoadEnvironmentVariables,也就是 Foundation\Http\Kernel::bootstrapers[] 的第一个,\Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables,如下:...

2019-07-15 12:00:58 810

转载 Laravel源码入门-启动引导过程(五)$kernel->handle($request)

上篇:Laravel源码入门-启动引导过程(四)app/Http/Kernel.phpKernel 做了两件事,第一个是定义 $bootstraps[],做好了 boot 系统的准备,第二个是定义 各种 middleware,这些都对 $request 进行加工、处理、甄选、判断,最终为可以形成正确的、有效的 $response 做准备,都完成后,进行了 index.php 中的 $ke...

2019-07-15 12:00:25 2721

转载 Laravel源码入门-启动引导过程(四)app/Http/Kernel.php

上篇:Laravel源码入门-启动引导过程(三)bootstrap/app.php== 回顾 ==再来回顾一下public/index.php,代码如下(去掉详细注释部分)。<?php // public/index.php/** * Laravel - A PHP Framework For Web Artisans * * @package Laravel...

2019-07-15 11:59:46 3057

转载 Laravel源码入门-启动引导过程(三)bootstrap/app.php

上篇:Laravel源码入门-启动引导过程(二)bootstrap/autoload.php从请求发起开始,进入 public/index.php,到 bootstrap/autoload.php,下一步就进入了创建应用实例,代码如下:/* /* 来自 public/index.php */||--------------------------------------------...

2019-07-15 11:32:58 1539

转载 Laravel源码入门-启动引导过程(二)bootstrap/autoload.php

上篇Laravel源码入门-启动引导过程(一)public/index.phpLaravel 由 public/index.php 开始,第一条语句是/*|--------------------------------------------------------------------------| Register The Auto Loader|------------...

2019-07-15 11:32:24 1039

转载 Laravel源码入门-启动引导过程(一)public/index.php

开始 public/index.phpLaravel安装完成后,启动服务器,输入比如 localhost:8000时,就开始启动和引动过程。所谓请求的入口,是否可以理解为当请求localhost:8000时和请求localhost:8000/login 或localhost:8000/home 都一样,每次的入口都是 public/index.php文件?或许是,应用的实例在初始化一...

2019-07-15 11:30:23 1477

原创 laravel 安装excel

一、安装1、composer require maatwebsite/excel ~3.1.02、在项目下composer.json中require里添加"maatwebsite/excel":"~3.1",并运行composer update 加载该包二、配置1、在config/app.php中注册服务提供者到providers数组:Maatwebsite\Excel\ExcelServ...

2019-06-06 18:28:36 341

原创 laravel 成长之路

第一个laravel实战~~~~① 创建 项目composer create-project --prefer-dist laravel/laravellaravel 5.7.*// php artisan thinkercomposer dump-autoload// 创建controllerphp artisan make:controllertest数...

2019-05-15 11:34:25 164

原创 laravel 文件地址

数据库config/database.php模型app/Http/Models视图resources/views控制器app/Http/Controllers路由规则routeshasManyThrough 多对多传递到 hasManyThrough 方法的第一个参数是我们最终想要访问到的模型,而第二个参数则是中间层的模型名称。当使用关联查询时,...

2019-04-04 15:11:59 311

原创 GitHub的使用

如果你本地没有 .ssh在本地生成 SSH Key 公钥ssh-keygen -t rsa -C "你的GitHub邮箱"; 看到啥都回车 直到执行完然后会在 C:\Users\你自己的管理员名称\.ssh看到 id_rsa 和 id_rsa.pub右键打开 id_rsa.pub 复制出来 放到下图 key的位置下 点击 add ssh key第一步 登录GitHu...

2019-01-10 11:25:20 113

原创 drupal 7 普通用户 可使用 CKEditor 的配置权限

①用户-&gt; ②权限开启以下权限Administration menu -&gt; Access administration menuFilter -&gt; 使用Full HTML文本格式 -&gt; 使用Filtered HTML文本格式System -&gt; 查看管理员主题Node -&g...

2018-11-02 18:21:24 185

原创 git 创建分支+合并分支操作

二期开发新建分支git checkout -b feature-v2推送到远程分支git push origin feature-xq-v2推送完了拉取一下git pull本地跟踪线上哪一个分支git branch --set-upstream-to=origin/feature-v2 feature-v2合并操作git checkout production...

2018-09-29 11:35:57 289

原创 linux + git 常用命令

linuxsudo 超管chmod -R 777  权限mkdir   创建目录vi  编辑文件  q 退出  wq 保存退出  !q 强制退出cat 查看文件信息git   git submodule update --init --recursive sites/         切换远程拉取分支...

2018-06-12 14:34:18 105

原创 Mysql

Mysql  or  in   UNION ALL      在没有索引的情况 or 和 in 会全盘扫描  用 EXPLAN 查看  type 为 all    而 UNION ALL type 为 refSELECT title FROM node WHERE type = 'spec_code' or type = 'supervisioncode';SELECT title FROM no...

2018-05-02 14:43:54 98

原创 drupal 登录流程

根目录/modules/user模块user.module -&gt;user_menu -&gt;'page callback' =&gt; 'user_page',function user_page() { global $user; if ($user-&gt;uid) { menu_set_active_item('user/' . $user-&gt;uid); ...

2018-04-18 17:28:26 742

原创 drupal install 文件

XXX.installfunction XXX_schema(){ if(!db_table_exists('dxy_validate_code')){ $sql = 'CREATE TABLE `XXX_code`( `id` INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, `status`

2018-04-13 17:19:55 178

原创 防xss

表单提交防xss代码function drupal_validate_utf8($text) { if (strlen($text) == 0) { return TRUE; } // With the PCRE_UTF8 modifier 'u', preg_match() fails silently on strings // containing invalid U...

2018-03-30 15:08:22 170

原创 drupal 框架

XX 代表自己的项目名 每次新的项目都要改一遍名称   XX_menu   $arr = array ('do' =&gt;'接口');     sites/ sites.php$sites["192.168.33.10.软链(和项目名相同的软链)"] = "项目名称";         // 配置浏览器输入  192.168.33.10/软链       192.168.33.10 可在host...

2018-03-22 17:02:39 1437

原创 vagrant搭建linux系统

https://laravel-china.org/articles/2564/using-vagrant-to-build-linux-development-environment-under-windowswindow下vagrant搭建linux系统。http://share.dxy.net/soft/vagrant/VirtualBox-5.0.16-105871-Win.exevagr...

2018-03-21 13:56:41 427

原创 curl会话

curl会话$xml = "";foreach ($orderarray as $key=>$val){   $xml.="";}$xml.="";   $url="https://pay.swiftpass.cn/pay/gateway";$ch = curl_init();//设置超时curl_setopt($ch, CURLOPT_TIMEOUT,

2018-01-10 14:22:41 544

原创 TP导入Excel

public function userimport() { if (IS_POST) { //判断是否符合文件格式 $allowedExts = array("xls", "xlsx", "csv"); $temp = explode(".", $_FILES["f"]["name"]);

2017-12-07 14:45:36 870

原创 ecmall导入Excel

function commImport(){ if (IS_POST) { $name = $_POST['name']; if (empty($name)) { $this->show_warning('请选择上传文件目录'); return; } $file = $_FIL

2017-12-07 14:45:07 229

原创 tp5 paginate类可以调用collection类的方法

TP5的分页 ->paginate();生成的是paginate类当调用Query对象的paginate()方法时,返回的是Paginator对象,但是可以通过Paginator对象调用Collection对象的方法,举个例子:获取house表的数据并且打乱数据的顺序$list = model('XXX')-> where)()->paginate();$list ->shuffle(

2017-11-20 15:09:07 2534

原创 TP Excel

// 导出甘特图 public function gantExport($project, $gant) { if (empty($gant) || !is_array($gant) || count($gant) 1) { $gant = []; } $x = 7; $y = 6; // 求出顶级的时间 $ma

2017-10-24 16:29:34 236

原创 微信公众号支付功能

public function recharge() { $amount = (float)$this->request->post('amount'); if (!$amount) return $this->jsonError('请选择充值金额'); $data = [ 'company_id' => $this->c

2017-09-16 10:43:53 1354

mac常用的软件资源

mac下常用的一些软件,办公常用的非常实用,很好很强大哦 适合开发使用的,很好非常不错

2020-08-04

体育馆预约系统

体育馆预约系统,实现在线选场地,选时间等,网页聊天。

2018-01-10

SSH商品销售系统

用SSH实现的商城,编译软件IDEA,导入直接可用。如果是环境的话自己配

2018-01-10

哈夫曼编译码器的实现

哈夫曼编译码器的实现,实现27个字母的编译

2014-12-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除