02 2020 档案

摘要:什么是页面静态化 页面静态化分为两种 一种伪静态,即url重写,一种纯静态化。 一、静态化的优点: 1有利于搜索引擎收录网站页面的信息:搜索引擎更喜欢静态的,更变于抓取,搜索引擎SEO排名会更容易提高。 2静态网页化网页稳定 3可以提高网页加载速度 4减轻服务器负担,浏览器不需要频发调用数据库。 5 阅读全文
posted @ 2020-02-29 11:20 时光一寸灰 阅读(406) 评论(0) 推荐(0)
摘要:下载组件:https://packagist.org/packages/ender/yunpian-sms 按步骤来就行 阅读全文
posted @ 2020-02-24 09:59 时光一寸灰 阅读(291) 评论(0) 推荐(0)
摘要:一、安装 1、下载地址:https://github.com/MicrosoftArchive/redis/releases/tag/win-3.2.100 2、Redis-x64-3.2.100.msi 下载 ( 安装步骤,下一步下一步,有选择框选中即可), 3、 安装完成配置: 打开 E:\Pr 阅读全文
posted @ 2020-02-23 15:00 时光一寸灰 阅读(251) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-02-20 11:32 时光一寸灰 阅读(93) 评论(0) 推荐(0)
摘要:函数:strtolower(); if(strtolower($_SESSION['rand'])==strtolower($str_number )){ echo "验证码正确"; }else{ echo "验证码不正确"; } 阅读全文
posted @ 2020-02-18 17:36 时光一寸灰 阅读(943) 评论(0) 推荐(0)
摘要:错误: Warning: require(E:\phpstudy_pro\WWW\blog\public/../vendor/autoload.php): failed to open stream: No such file or directory in E:\phpstudy_pro\WWW\ 阅读全文
posted @ 2020-02-18 10:22 时光一寸灰 阅读(578) 评论(0) 推荐(0)
摘要:法一:进入 https://packagist.org/ 组件网 搜索 gregwar/captcha 法二:用命令 composer require gregwar/captcha 或者:在项目中的composer.json 文件中加入 "require" :{ "gregwar/captcha" 阅读全文
posted @ 2020-02-17 18:19 时光一寸灰 阅读(373) 评论(0) 推荐(0)
摘要:报错:Class App\Http\Controllers\Admin/LoginController does not exist 原因:注意路由 控制器路径的斜杠应该是\而不是/ 阅读全文
posted @ 2020-02-17 17:34 时光一寸灰 阅读(692) 评论(0) 推荐(0)
摘要:一、本地操作: 1.其它 git init:初始化本地库 git status:查看工作区、暂存区的状态 git add <file name>/git add .:将工作区的“新建/修改”添加到暂存区 git rm --cached <file name>:移除暂存区的修改 git commit 阅读全文
posted @ 2020-02-15 11:24 时光一寸灰 阅读(119) 评论(0) 推荐(0)
摘要:一、安装composer 参考菜鸟教程:https://www.runoob.com/w3cnote/composer-install-and-usage.html 二、下载laravel安装工具 进入win10 控制台 输入composer 看composer 是否安装成功 输入 命令: comp 阅读全文
posted @ 2020-02-13 17:42 时光一寸灰 阅读(828) 评论(0) 推荐(0)
摘要:$arr = [4,5,3,7,8,9];print_r(maopao($arr));function maopao($arr){ $len = count($arr); $n = $len-1; for ($i=0;$i<=$len;$i++){ for ($j=0;$j<$n;$j++){ if 阅读全文
posted @ 2020-02-12 15:23 时光一寸灰 阅读(111) 评论(0) 推荐(0)
摘要:表单验证匹配 验证账号,字母开头,允许 5-16 字节,允许字母数字下划线:^[a-zA-Z][a-zA-Z0-9_]{4,15}$ 验证账号,不能为空,不能有空格,只能是英文字母:^\S+[a-z A-Z]$ 验证账号,不能有空格,不能非数字:^\d+$ 验证用户密码,以字母开头,长度在 6-18 阅读全文
posted @ 2020-02-12 10:36 时光一寸灰 阅读(271) 评论(0) 推荐(0)