08 2021 档案

摘要:下面两种情况都可以考虑下是否是mcrypt这个库未安装 提示:Call to undefined function mcrypt_module_open() 安装mcrypt扩展库 人人商城登录失败也可以看下是否是自己未安装mcrypt扩展库,默认是用mcrypt库进行AES的加解密 第一步、安装 阅读全文
posted @ 2021-08-23 15:34 GetcharZp 阅读(275) 评论(0) 推荐(0) 编辑
摘要:golang 中本身不支持三目运算,如果想要简化代码,可以自定义一个三目运算的函数,通过函数的调用来实现三目运算 package main import ( "fmt" ) // 三目运算的函数 func ternary(a bool, b, c interface{}) interface{} { 阅读全文
posted @ 2021-08-22 16:17 GetcharZp 阅读(2524) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/1383776/202108/1383776-20210822112425405-573674684.png) ![](https://img2020.cnblogs.com/blog/1383776/202108/1383776-20210822112625525-531983361.png) ![](https://im 阅读全文
posted @ 2021-08-22 11:27 GetcharZp 阅读(34) 评论(0) 推荐(0) 编辑
摘要:package main import ( "fmt" "errors" ) type Stack []int // 入栈 func (s *Stack) push(a int) { *s = append(*s, a) } // 出栈 func (s *Stack) pop() (int, err 阅读全文
posted @ 2021-08-22 00:29 GetcharZp 阅读(199) 评论(0) 推荐(0) 编辑
摘要:用法一: 为函数设置不定长度的参数 func myPrint(x ...interface{}) { for _, v := range x { fmt.Println(v) } } 用法二: 为数组设置默认长度 a := [...]int{12, 32, 12} // [12 32 12] 3 3 阅读全文
posted @ 2021-08-17 14:56 GetcharZp 阅读(94) 评论(0) 推荐(0) 编辑
摘要:下载ftp yum -y install vsftpd 编辑配置文件,将下面两项的注释打开 # vim /etc/vsftpd/vsftpd.conf chroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list # 允许登录服务器的 阅读全文
posted @ 2021-08-13 16:42 GetcharZp 阅读(75) 评论(0) 推荐(0) 编辑
摘要:网上很多说法是第三方服务的问题,不过我们这边之前那个服务器上都是正常的,那么,考虑到这里最大可能就是配置的问题了,参考 https://wiki.w7.cc/chapter/35?id=3903 得到了思路 修改 php.ini 文件中的 always_populate_raw_post_data 阅读全文
posted @ 2021-08-09 17:15 GetcharZp 阅读(147) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示