php页面cookie错误
链接login1.php 出现如下告警信息:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/ipgl/login1.php:2) in /var/www/ipgl/login1.php on line 87
Warning: Cannot modify header information - headers already sent by (output started at /var/www/ipgl/login1.php:2) in /var/www/ipgl/login1.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /var/www/ipgl/login1.php:2) in /var/www/ipgl/login1.php on line 89
Warning: Cannot modify header information - headers already sent by (output started at /var/www/ipgl/login1.php:2) in /var/www/ipgl/login1.php on line 90
Warning: Cannot modify header information - headers already sent by (output started at /var/www/ipgl/login1.php:2) in /var/www/ipgl/login1.php on line 91
lingin1.php的代码如下:
if($qx==0)
{
setcookie("yhmch","$yhmch"
setcookie("jdmch","$jdmch"
setcookie("qx","$qx"
setcookie("dlqr","$dlqr"
header("Location:index.php "
}
请问是何原因,在论坛里找了一圈,没有结果。
php.ini 中已经配置
session.auto_start = 1
谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论