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
<?php header('content-type:application/json;charset=utf-8');//设置浏览器解析格式为json header('Access-Control-Allow-Origin: *'); $curPage = $_GET['page'];//前台传递 ...
分类:
Web程序 时间:
2020-07-23 01:52:57
阅读次数:
137
/** * 观察对象 * Undocumented class */ class User implements SplSubject { public $loginCnt; private $observers; public function __construct() { $this->obs ...
分类:
Web程序 时间:
2020-07-23 01:49:57
阅读次数:
93