解决Warning: Cannot modify header information - headers already sent by (output started at /usr/local/
1.原因的出现:PHP接收到数据之后,先是echo了一个数据到前端,然后再发送查询到的数据库数据到前端,就会出现这个问题。以下为PHP代码:<?php $status = $_GET['STATUS']; echo $status;//这里与下面的echo起了冲突 //打开数据库 class MyDB extends SQLite3 { function __construct() { $this->open('