怎么修改php上传文件文件大小限制 修改PHP上传文件大小限制的方法 一般的文件上传,除非文件很小.就像一个5M的文件,很可能要超过一分钟才能上传完. 但在php中,默认的该页最久执行时间为 30 秒.就是说超过30秒,该脚本就停止执行. 这就导致出现 无法打开网页的情况.这时我们可以修改 max_ ...
分类:
Web程序 时间:
2020-07-23 23:06:30
阅读次数:
87
代码如下: $store_list = Array ( [0] => Array ( [name] => asdf [head] => /upload/thumbs/20150814220142_27630.jpg [img] => [content] => asdfasdfasdf [dateti ...
分类:
编程语言 时间:
2020-07-23 22:26:51
阅读次数:
129
session.auto_start=0 修改为 session.auto_start=1;
output_buffering = Off 修改为 output_buffering = On; ...
分类:
数据库 时间:
2020-07-23 18:56:25
阅读次数:
86
#使用限制 本教程示例步骤适用于以下软件版本: 操作系统:公共镜像CentOS 7.2 64位 Nginx版本:Nginx 1.16.1 MySQL版本:MySQL 5.7.28 PHP版本:PHP 7.0.33 操作流程 步骤一:准备编译环境 关闭防火墙。 运行systemctl status f ...
分类:
其他好文 时间:
2020-07-23 16:44:05
阅读次数:
96
PHP接受json数据 获取请求的参数 $input = file_get_contents("php://input"); $input = json_decode($input,true); var_dump($input); 获取文件的json $input = file_get_conten ...
分类:
Web程序 时间:
2020-07-23 16:11:49
阅读次数:
79
php pdo备份数据库方法 备份表数据: create table tmp_article_info as select * from article_info 删除字段id ALTER TABLE sss DROP id; 还原表数据: truncate table tmp_article_in ...
分类:
数据库 时间:
2020-07-23 16:05:13
阅读次数:
107
vscode如何配置c/c++环境 下载 Mingw 参考链接:https://blog.csdn.net/jiqiren_dasheng/article/details/103775488 笔者下载的x86_64-8.1.0-release-win32-sjlj离线包存放在百度网盘,需要的读者可以 ...
分类:
编程语言 时间:
2020-07-23 16:01:55
阅读次数:
75
1、使用composer安装 composer require phpoffice/phpspreadsheet 2、写入Excel common(应用公共文件,app/common.php),方便调用: use PhpOffice\PhpSpreadsheet\IOFactory; use Php ...
分类:
Web程序 时间:
2020-07-23 15:52:30
阅读次数:
110
swoole4.x后支持一键协程 加上后,开启一键协程化后,MySQL、Redis、Curl 等操作会变成异步 IO //此行代码后,文件操作,sleep,Mysqli,PDO,streams等都变成异步IO,见文档"一键协程化"章节 Swoole\Runtime::enableCoroutine( ...
分类:
其他好文 时间:
2020-07-23 09:16:13
阅读次数:
135