Fork me on GitHub
摘要: 登录验证码 1、首先,进入https://github.com/mewebstudio/captcha,根据captcha上的使用方法一步步来实现验证码的安装,因为是laravel5.7,所以选择了composer安装:composer require mews/captcha。 2、可能larav 阅读全文
posted @ 2019-03-27 09:41 big2cat 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 在入口文件<?PHP下加上 header('Access-Control-Allow-Origin:*');header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");header('A 阅读全文
posted @ 2019-02-26 15:58 big2cat 阅读(808) 评论(0) 推荐(0) 编辑
摘要: 安装cors 地址:https://github.com/barryvdh/laravel-cors 在Kernel文件中加上 \Barryvdh\Cors\HandleCors::class, ], 使用 npm: 进入项目,安装并运行: 成功执行以上命令后访问 http://localhost: 阅读全文
posted @ 2019-02-19 15:29 big2cat 阅读(330) 评论(0) 推荐(0) 编辑
摘要: Session的销毁 阅读全文
posted @ 2018-11-27 16:01 big2cat 阅读(1803) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-26 14:57 big2cat 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Application目录 public目录 静态样式,CSS ,JS ThinkPHP 封装的核心的类 .htaccess url模式(一般重写模式) composer.json 框架介绍 index.php 框架入口 访问文件夹自动生成Common文件夹和Home文件夹 Common/Conf/ 阅读全文
posted @ 2018-11-07 16:56 big2cat 阅读(119) 评论(0) 推荐(0) 编辑
摘要: $smarty->assign('abc(随便定义)','$article')//查询结果发送给模板 {{foreach $abc as $??(随便定义)}} 阅读全文
posted @ 2018-11-06 16:12 big2cat 阅读(283) 评论(0) 推荐(0) 编辑
摘要: php端 查询数据库里所有文章,然后把查询的结果发送给模板(assgin) 模板做foreach循环,使用自己定义的两个大括号。 阅读全文
posted @ 2018-11-04 19:52 big2cat 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 进入博客目录新建index.php页面 <?php require “XXXX/index.html”;//引入html页面 是否能进入localhost/xxx/index.php 注意,php5开始,已经废弃使用此函数,如需使用,请降低php的版本! 进入mysql建立表 注意id字段————— 阅读全文
posted @ 2018-10-30 22:02 big2cat 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 数组中的元素可以按字母或数字顺序进行降序或升序排列。 升序:从小到大的顺序进行排序,如果是英文单词,那么按字母A-Za-z的顺序排序,如果是数字,那么按数字的大小进行排序。 降序:与升序相反 数组排序函数 在本章中,我们将一一介绍下列 PHP 数组排序函数: · sort() - 对数组进行升序排列 阅读全文
posted @ 2018-10-29 15:27 big2cat 阅读(371) 评论(0) 推荐(0) 编辑