Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/—/dbconnect.php:1) in /Applications/MAMP/htdocs/—/functions.php on line 84
这是dbconnect.php:
define("INC", 1);
}
error_reporting(E_ALL);
require_once("config.mysqli.php");
@$mysqli = mysqli_connect($dbhost,$dbuser,$dbpass,$dbname) or die("No Db found");?>
还尝试过:
if(!defined("INC")){
define("INC", 1);
}
error_reporting(E_ALL);
require_once("config.mysqli.php");
@$mysqli = mysqli_connect($dbhost,$dbuser,$dbpass,$dbname) or die("No Db found");
ob_end_clean();?>
如果您需要更多信息,请与我们联系.谢谢!
解决方法:
看起来您可能有BOM错误.有关详细信息,请参阅此帖子:session_start() Error
标签:php,header
来源: https://codeday.me/bug/20190703/1366628.html