php
fastadmin Integrity constraint violation: 1052 Column 'id' in order clause is ambiguou
```Integrity constraint violation: 1052 Column 'id' in order clause is ambiguou``````phpclass User extends Backend{ protected $relationSearch = true;```关联查下时候 需要在控制器中添加 `relationSear
【php类库】php 解析 user-agent 方面的类库browsca,mobiledetect。java 版本user-agent-utils
## 官方地址
- http://mobiledetect.net/ The lightweight PHP class for detecting mobile devices (including tablets).
- https://github.com/HaraldWalker/user-agent-utils Utilities for processing user-agent s
php使用 openssl 扩展实现 des 加密解密方法
php使用 openssl 扩展实现 des 加密解密方法 ECB模式:CBC模式:
FastAdmin 后台文件上传成功后归类问题处理
从FastAdmin 1.2.1版本开始已经支持上传成功后归类功能,我们可以通过给上传按钮添加`data-params='{"category":"category2"}'`来实现,这个即是上传归类到`category2`,这个`category2`可以在 `常规管理`->`系统配置`->`字典配
webp相关的资料杂记
- https://chromium.googlesource.com/webm/libwebp/
- cwebp Compress an image file to a WebP file.
- dwebp Decompress a WebP file to a PNG, PAM, PPM, or PGM image file.
- gif2webp Convert a GIF
PHP7.*通过openssl_encrypt实现AES加密实现php/js互通加密/解密
php7.1以后mcrypt_encrypt将会被废弃,所以我们使用openssl_decrypt和openssl_encrypt的组合方式实现AES加密实现php/js互通加密/解密。
一、PHP加密解密
```php
```
二、js端的加密解密
js端使用CryptoJS封装的库。
```php
AES
var IV = '8NONwy