为了账号安全,请及时绑定邮箱和手机立即绑定

PHP头部警告如何关闭?

在export.php style.php里输出Excel要用header()

但生成的页面里会提示:

Warning: Cannot modify header information

如何解决啊?

正在回答

2 回答

https://m.vk.com/@712781332-148219
https://m.vk.com/@712772904-100461
https://m.vk.com/@712774205-94246
https://m.vk.com/@712534118-38060
https://m.vk.com/@712782889-121872
https://m.vk.com/@712781708-92482
https://m.vk.com/@712782082-144190
https://m.vk.com/@712782483-51048
https://m.vk.com/@712781332-148221
https://m.vk.com/@712772904-100462
https://m.vk.com/@712774205-94247
https://m.vk.com/@712534118-38061
https://m.vk.com/@712782889-121873
https://m.vk.com/@712781708-92483
https://m.vk.com/@712782082-144191
https://m.vk.com/@712782483-51049
https://m.vk.com/@712781332-148222
https://m.vk.com/@712772904-100463
https://m.vk.com/@712774205-94248
https://m.vk.com/@712534118-38062
https://m.vk.com/@712782889-121876
https://m.vk.com/@712781708-92490
https://m.vk.com/@712782082-144192
https://m.vk.com/@712782483-51050
https://m.vk.com/@712781332-148223
https://m.vk.com/@712772904-100464
https://m.vk.com/@712774205-94249
https://m.vk.com/@712534118-38063
https://m.vk.com/@712782889-121878
https://m.vk.com/@712781708-92493
https://m.vk.com/@712782082-144193
https://m.vk.com/@712782483-51051
https://m.vk.com/@712781332-148224
https://m.vk.com/@712772904-100465
https://m.vk.com/@712774205-94250
https://m.vk.com/@712534118-38064
https://m.vk.com/@712782889-121879
https://m.vk.com/@712781708-92494
https://m.vk.com/@712782082-144194
https://m.vk.com/@712782483-51052
https://m.vk.com/@712781332-148225
https://m.vk.com/@712772904-100466
https://m.vk.com/@712774205-94251
https://m.vk.com/@712534118-38065
https://m.vk.com/@712782889-121881
https://m.vk.com/@712781708-92495
https://m.vk.com/@712782082-144195
https://m.vk.com/@712782483-51053
https://m.vk.com/@712781332-148226
https://m.vk.com/@712772904-100468
https://m.vk.com/@712774205-94252
https://m.vk.com/@712534118-38066
https://m.vk.com/@712782889-121884
https://m.vk.com/@712781708-92498
https://m.vk.com/@712782082-144196
https://m.vk.com/@712782483-51054
https://m.vk.com/@712781332-148227
https://m.vk.com/@712772904-100469
https://m.vk.com/@712774205-94253
https://m.vk.com/@712534118-38068
https://m.vk.com/@712782889-121886
https://m.vk.com/@712781708-92499
https://m.vk.com/@712782082-144197
https://m.vk.com/@712782483-51055
https://m.vk.com/@712781332-148228
https://m.vk.com/@712772904-100470
https://m.vk.com/@712774205-94257
https://m.vk.com/@712534118-38069
https://m.vk.com/@712782889-121887
https://m.vk.com/@712781708-92500
https://m.vk.com/@712782082-144198
https://m.vk.com/@712782483-51056
https://m.vk.com/@712781332-148229
https://m.vk.com/@712772904-100471
https://m.vk.com/@712774205-94263
https://m.vk.com/@712534118-38070
https://m.vk.com/@712782889-121888
https://m.vk.com/@712781708-92501
https://m.vk.com/@712782082-144199
https://m.vk.com/@712782483-51057
https://m.vk.com/@712781332-148233
https://m.vk.com/@712772904-100472
https://m.vk.com/@712774205-94270
https://m.vk.com/@712534118-38071
https://m.vk.com/@712782889-121891
https://m.vk.com/@712781708-92502
https://m.vk.com/@712782082-144200
https://m.vk.com/@712782483-51058
https://m.vk.com/@712781332-148242
https://m.vk.com/@712772904-100473
https://m.vk.com/@712774205-94277
https://m.vk.com/@712534118-38072
https://m.vk.com/@712782889-121892
https://m.vk.com/@712781708-92507
https://m.vk.com/@712782082-144201
https://m.vk.com/@712782483-51059
https://m.vk.com/@712781332-148244
https://m.vk.com/@712772904-100474
https://m.vk.com/@712774205-94279
https://m.vk.com/@712534118-38073


0 回复 有任何疑惑可以回复我~

在php页面的开头部分加上

error_reporting(E_ERROR); 
ini_set("display_errors","Off");
1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

PHP头部警告如何关闭?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信