![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
helodd
这个作者很懒,什么都没留下…
展开
-
Nginx+php-fpm对上传附件的设置
Nginx+php-fpm对附件默认的设置都很小, 需要改动配置实现想的附件尺寸。修改nginx.conf和php.ini实现。file_uploads = on #默认Off ,改为 On。#设置成nginx的client_max_body_size。#设置成nginx的client_max_body_size。原创 2023-02-17 09:35:44 · 528 阅读 · 0 评论 -
php在UTF-8编码文件下strlen取中文字串长度不正确
1、选择数据表的字符集改为正确的字符集 ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; 2、更新内容转换为正确的字符集 ALTER TABLE ht_retax CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; ...原创 2022-03-23 16:28:15 · 423 阅读 · 0 评论 -
LNMP配置支持Redis踩过的坑
1、下载扩展支持 $wget http://download.redis.io/releases/redis-5.2.2.tar.gz 2、解压 $tar xzvf redis-5.2.2.tar.gz 3、生成配置 $cd redis-5.2.2 $phpize 4、编译安装 $sudo ./configure --with-php-config=/usr/local/php/bin/php-config $make $make install 5、修改php.ini 添加扩展支持.原创 2021-04-13 11:55:12 · 100 阅读 · 0 评论