session_start() 错误 [英] session_start() Error
本文介绍了session_start() 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对 session_start() 有一些问题;
i have some Problems with session_start();
我知道在 session_start() 之前不应该输出任何内容;声明
I know that nothing should be outputted before the session_start(); statement
但是我在我的脚本中找不到问题
But i can't find the Problem in my Script
index.php:
<?php session_start();
include('functions.php');
if(!is_logged_in(session_id())){
include('form.php');
}else{
?>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
<?php
}
?>
但我总是跟着错误:
警告:session_start()[function.session-start]:无法发送会话 cookie - 标头已发送by(输出开始于C:\xampp\htdocs\fertige_scan\index.php:1)在C:\xampp\htdocs\fertige_scan\index.php第 1 行
我希望你能帮助我:)
推荐答案
确保您的文件保存为 ANSI 格式而不是 UTF-8 格式.
Make sure your file is saved as ANSI format not UTF-8 format.
这篇关于session_start() 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文