PHP提示错误,请帮看一看 session_start()前面有输出了,把这句放到页面的最前面 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /data/home/zh4031/htdocs/index/inc/setpage.php:109) in /data/home/zh4031/htdocs/index/accounts/Login.php on line 3但是我在自己的电脑上又没问题 同意ice_berg16(寻梦的稻草人) 代码贴出来 我现在提交成功了,但跳转到另外一个页面它就没有显示。我知道SESSION现在已经成功提交过去了。 <?session_start();include("../inc/inc.php");if(!$_SESSION[name]) { echo JavaFun("alert('尚未登陆');window.location='./Login.php';"); exit();}?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link href="../inc/style.css" rel="stylesheet" type="text/css"><title>管理员后台</title></head><frameset rows="50,*" frameborder="NO" border="0" framespacing="0"> <frame src="UntitledFrame-18.php" name="topFrame" scrolling="NO" noresize> <frameset rows="*" cols="250,*" framespacing="0" frameborder="yes" border="0"> <frame src="UntitledFrame-19.php" name="leftFrame" scrolling="NO" noresize> <frame src="Untitled-7.htm" name="mainFrame"> </frameset></frameset><noframes><body></body></noframes></html>这是我跳转的页面,是一个框架 /data/home/zh4031/htdocs/index/inc/setpage.php:109即setpage.php的第109行应该是程序已结束了吧,那你应该是一空行。当你不是用文本方式上传程序文件时,windows下的回车符是不会自动被去掉的。而<?php ?>标记以外的内容都被视为输出,当然回车符也不例外!....?>| <--编辑文件时宜将最后一行的光标停在这里| <--而不是在这里 我遇到过类似的问题,或许对你有帮助,有些编辑器,比如UE,有windows或者unix文件的转换功能,两种文件的字符编码可能有差别吧,所以,如果存储错误,会出现这种情况,但是查看文件时候却看不到什么无关字符 关于mediawiki的搜索问题PHP+MYSQL 织梦(dede) 跪求 定时更新首页,栏目页,文章页 方法 求网站开发文档范例!! 谢谢:假如在一个留言本中想把该页留言的内容放在另一个php页面中该如何实现? 这段代码是哪出错了?菜菜的问一下,小弟刚学,有分奖励! 谁能编写代码? 用php或javascript实现转贴文章的问题!谢谢! 我想我这个名字一定很牛叉 php添加扩展 在phpinfo能看到该扩展,但在cli用php -m 却看不到,为什么呢 php获取自定义header里的参数 请教关于 SMARTY 作用? 如何判断当前时间是否属于一个指定的时间区间?50分求解
代码贴出来
我知道SESSION现在已经成功提交过去了。
session_start();
include("../inc/inc.php");
if(!$_SESSION[name]) {
echo JavaFun("alert('尚未登陆');window.location='./Login.php';");
exit();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../inc/style.css" rel="stylesheet" type="text/css">
<title>管理员后台</title>
</head><frameset rows="50,*" frameborder="NO" border="0" framespacing="0">
<frame src="UntitledFrame-18.php" name="topFrame" scrolling="NO" noresize>
<frameset rows="*" cols="250,*" framespacing="0" frameborder="yes" border="0">
<frame src="UntitledFrame-19.php" name="leftFrame" scrolling="NO" noresize>
<frame src="Untitled-7.htm" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
这是我跳转的页面,是一个框架
即setpage.php的第109行应该是程序已结束了吧,那你应该是一空行。当你不是用文本方式上传程序文件时,windows下的回车符是不会自动被去掉的。而<?php ?>标记以外的内容都被视为输出,当然回车符也不例外!
....
?>| <--编辑文件时宜将最后一行的光标停在这里
| <--而不是在这里