duangao8359 2009-12-18 15:57
浏览 26

如何修复PHP中的隐形空间问题? [重复]

This question already has an answer here:

As a result,functions like session_start and setcookie can't run successfully,reporting:

Cannot modify header information - headers already sent by

But the target file is like this:

1 <?php
2 session_start(); 

How to fix it?

FOUNDINGS

I've found the problem,the utf-8 formated files become utf-8+BOM after uploading to the server,so I've temporarily solved the problem by saving it as utf-8 again.

BUT,there are lots of other files with the same problem,how can I batch solve the issue?

</div>
  • 写回答

7条回答 默认 最新

  • duansha7453 2009-12-18 16:07
    关注

    There's only one way to fix it: find the space! It's somewhere, it's always somewhere.

    To fix, try the three steps in this article.

    评论

报告相同问题?

悬赏问题

  • ¥170 如图所示配置eNSP
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥15 键盘指令混乱情况下的启动盘系统重装