public function add() { $data = input('post.'); $img = request()->file('img_banner'); $info = $img->move("./static/uploads/lunbo"); if ($info) { // 输出 ...
分类:
Web程序 时间:
2021-01-12 10:30:06
阅读次数:
0
china-data-dictionary 刚发现一个生成数据字典比较不错的工具china-data-dictionary https://www.oschina.net/p/china-data-dictionary 使用步骤 修改 index.php 文件里 app_init()将其中定义的如下 ...
分类:
其他好文 时间:
2021-01-12 10:28:48
阅读次数:
0
PL/SQL中有个代码优化的功能,里面可以定义规则,挺好用的,跟大家分享下: 1.首先新建一个my.br文件,在文件中复制以下内容 Version=1 RightMargin=90 Indent=4 UseTabCharacter=FALSE TabCharacterSize=4 AlignDecl ...
分类:
数据库 时间:
2021-01-12 10:28:16
阅读次数:
0
在Yii框架中,为了防止csrf攻击,封装了CSRF令牌验证。 只需要在主配置文件中进行简单的配置,就可以实现CSRF的验证。假设配置如下: $config = [ 'components' => [ 'request' => [ 'enableCsrfCookie' => false, //设置令 ...
分类:
其他好文 时间:
2021-01-11 11:12:33
阅读次数:
0
当传参data为二维数组,Content-Type: application/x-www-form-urlencoded时, $a = array('a','b','c'); $a['d'] = array('e','f','g'); 传参为二维数组时 $a['d'] = json_encode($ ...
分类:
Web程序 时间:
2021-01-11 11:10:40
阅读次数:
0
生成ssh公钥认证所需的公钥和私钥文件 [jiaqi.li@localhost ~]$ ssh-keygen -t rsa -b 4096Generating public/private rsa key pair.Enter file in which to save the key (/home ...
分类:
其他好文 时间:
2021-01-11 11:08:35
阅读次数:
0
Content-Type(内容类型),一般是指网页中存在的 Content-Type,用于定义网络文件的类型和网页的编码,决定浏览器将以什么形式、什么编码读取这个文件,这就是经常看到一些 PHP 网页点击的结果却是下载一个文件或一张图片的原因。 Content-Type 标头告诉客户端实际返回的内容 ...
分类:
Web程序 时间:
2021-01-11 11:08:14
阅读次数:
0
写文章 我们在开发、断的刷题、面试中,我们可能会遇到将一个对象的属性赋值到另一个对象的情况,这种情况就叫做拷贝。拷贝与Java内存结构息息相关,搞懂Java深浅拷贝是很必要的! 在对象的拷贝中,很多初学者可能搞不清到底是拷贝了引用还是拷贝了对象。在拷贝中这里就分为引用拷贝、浅拷贝、深拷贝进行讲述。 ...
分类:
编程语言 时间:
2021-01-11 10:59:42
阅读次数:
0
?自定义排序格式 ///对 num [1,n+1)区间进行自定义排序 Arrays.sort(num,1,n+1,new Comparator<Integer>() { public int compare(Integer o1,Integer o2) { return o1-o2;///o1-o2 ...
分类:
编程语言 时间:
2021-01-11 10:56:15
阅读次数:
0
ltrim() 删除字符串开头的空白字符(或其他字符)。 string ltrim ( string $str[, string $character_mask]) 参数描述str 输入的字符串。 character_mask 通过参数 character_mask,你也可以指定想要删除的字符,简单 ...
分类:
Web程序 时间:
2021-01-11 10:54:31
阅读次数:
0