[TOC]## 1. 文件上传> [doc](https://www.layui.com/doc/modules/upload.html)```html upload模块快速使用 上传图片``` ...
分类:
其他好文 时间:
2020-07-26 00:53:31
阅读次数:
80
<?php // clearDir('upload/images/'); if ($_FILES['file']['error'] == 0) { $MAX_FILE_SIZE = 300000; if ($_FILES['file']['size'] > $MAX_FILE_SIZE) { exi ...
分类:
Web程序 时间:
2020-07-26 00:34:37
阅读次数:
73
<?php water('upload/images/202007250204199.jpg', 'upload/images/202007250155160.jpg'); function water($durl, $surl) { $dit = imagecreatefromjpeg($durl ...
分类:
Web程序 时间:
2020-07-26 00:18:27
阅读次数:
86
【RN小记】解决Mac下Pod install 缓慢 或 error: RPC failed; 或 the remote end hung up unexpectedly
分类:
系统相关 时间:
2020-07-24 21:33:52
阅读次数:
174
在使用getuploadfiles方法得到相应的from表单名字的图片之后 在使用r.sava方法的时候不要单独只传一个files在files后面再 加一个true支持生成文件名字随机生成,这样就不怕文件名字重复了。 ...
分类:
Web程序 时间:
2020-07-24 16:51:53
阅读次数:
129
docker 容器使用 systemctl 命令是报错 看了许多解决方案,但是对于新手来说并不友好,不是特别清楚 报错内容: System has not been booted with systemd as init system (PID 1). Can't operate. Failed t ...
分类:
其他好文 时间:
2020-07-24 16:18:05
阅读次数:
82
JWT jwt=Json Web token 1)jwt分三段式:头.体.签名 (head.payload.sgin) 2)头和体是可逆加密,让服务器可以反解出user对象;签名是不可逆加密,保证整个token的安全性的 3)头体签名三部分,都是采用json格式的字符串,进行加密,可逆加密一般采用b ...
分类:
Web程序 时间:
2020-07-23 23:29:56
阅读次数:
125
window测试工具 pip install speedtest-cli 测试命令 speedtest-cli #既显示下载速度,也显示上传速度speedtest-cli --no-upload #只显示下载速度speedtest-cli --no-download #只显示上传速度speedtes ...
代码如下: $store_list = Array ( [0] => Array ( [name] => asdf [head] => /upload/thumbs/20150814220142_27630.jpg [img] => [content] => asdfasdfasdf [dateti ...
分类:
编程语言 时间:
2020-07-23 22:26:51
阅读次数:
129
C++ 字符串 C++ 提供了以下两种类型的字符串表示形式: C 风格字符串 C++ 引入的 string 类类型 C 风格字符串 C 风格的字符串起源于 C 语言,并在 C++ 中继续得到支持。字符串实际上是使用 null 字符 '\0' 终止的一维字符数组。因此,一个以 null 结尾的字符串, ...
分类:
编程语言 时间:
2020-07-23 18:51:50
阅读次数:
74