Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有点困惑,需要帮助。我在我的 php 项目中使用引导 CDN,这给我带来了一些问题。
当我删除引导 CDN 会话并且登录处理工作正常但当我将其插入我的脚本时,我收到以下警告,我不知道为什么:
起始页 - 警告
头文件.php
索引.php
怎么了?提前致谢!
header.php 包含 html 输出。当您在 index.php 的开头包含它时,它也开始输出 html。只有在那之后你才包括你的 login.php。
由于 login.php 包含在页面开始输出 html 代码之前需要执行的代码,因此会引发警告。
检查是否可以切换顺序,在 header.php 之前包含 login.php