PHP代码如何实现按IP跳转城市?附代码研究

来源:百度知道 编辑:UC知道 时间:2024/07/01 04:00:23
先看看这段代码.
这一段代码应该是可以用的,但是却提示Warning: Cannot modify header information - headers already sent by (output started at /data/httpd/www/shop43_veryserver_com_cn/index2.php:174) in /data/httpd/www/shop43_veryserver_com_cn/index2.php on line 181

不知道问题该如何解决?
忘了贴代码地址了,上面那个输出问题自己解决了,请看看这个页面,具体情况在里面http://bbs.phpchina.com/thread-163253-1-1.html

应该是header前面有输出了。
header前面不能有任何的输出。例如echo或者HTML代码

头部被重复设置。

估计是inlude的时候重复inlude了头部

同意楼上说话.
header("Content-type: text/html; charset=utf-8");
把这句话删除试试.