为什么这段代码不起作用? [英] why this code not working?
本文介绍了为什么这段代码不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写了这段代码:
header('location:forum.php');
并告诉我这个错误:
警告:无法修改标题信息 - 已经发送的标题(输出从C:\ xampp \ htdocs开始) \ project \login.php:20).......
i wrote this code :
header('location:forum.php');
and show me this error:
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\project\login.php:20).......
推荐答案
打开php输出缓冲:
< a href =http://stackoverflow.com/questions/9707693/warning-cannot-modify-header-information-headers-already-sent-by-error> warning-can-modify-header-information-headers-already-already -sent-by-error [ ^ ]
Turn on php output buffering:
warning-cannot-modify-header-information-headers-already-sent-by-error[^]
这篇关于为什么这段代码不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文