php问题:Warning:Cannot modify header information - headers already sent by (output started at

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/08 11:05:00
php问题:Warning:Cannot modify header information - headers already sent by (output started at
x?O@a|@p\1c'Әȇ=ک_JAItf{'iEMȽG 0& ꤢV PdT)Jh1`Z>j4>˘A4`3D\ĤmӊmV9荻F5 >Ӊ>q3x ޞcw:j+,gsl))/v*TndJ ƸT t RTZ\ {~~қUg* bQ7y`6L|޿#{0cD"rȵۥo-cXj%_?#֫l~=

php问题:Warning:Cannot modify header information - headers already sent by (output started at
php问题:Warning:Cannot modify header information - headers already sent by (output started at

php问题:Warning:Cannot modify header information - headers already sent by (output started at
php header ()之前不能输出内容,建议用JS跳转,把所有header()换成
echo 'location.href="error.php"';

建议用JS跳转

既然都写了history.back(); 下面怎么还跳转到error.php 页面? 建议把header()替换掉history

header ("location: error.php");前面不能有输出内容。