|
查看: 738|回复: 4
|
setcookie和header()问题
[复制链接]
|
|
|
发表于 16-11-2008 12:57 AM
|
显示全部楼层
用binary editor 检查一下。
由于某些file format 会附带一些不知名的东东,所以在 excute 的时候就会出现。
解决方法有几个
1, 用binary 或 hex editor 找出来然后delete,之前我试过一个叫做 ultraedit 满不错。
2, 在 php.ini 里找那个 string buffer 什么的(忘记了全名) 然后 改成 on
[ 本帖最后由 vampcheah 于 16-11-2008 01:00 AM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
为什么我做这2个command 在php
在 wampserver 2.0最新版的 没问题
放上网就出
Warning: Cannot modify header information - headers already sent by (output started at /home/infoweb/public_html/hawcheewee/chatroom/showuser.php:2) in /home/infoweb/public_html/hawcheewee/chatroom/showuser.php on line 3
 |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 15-11-2008 11:46 PM
|
显示全部楼层
还是会出现一样的 |
|
|
|
|
|
|
|
|
|
|
发表于 15-11-2008 10:14 PM
|
显示全部楼层
|
把 <?PHP 之前和 ?> 之后的空位去掉. 如何? |
|
|
|
|
|
|
|
|
|
|
发表于 16-11-2008 08:39 AM
|
显示全部楼层
或者,
1. save file as encoding ANSI
2. setcookie 和 header 之前的 code 不可以是 output, 例如: echo, print_r, var_dump |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|