new line detected
========================================================
$gp_from是什么样的内容?注意不能包含类似\n\r这样的字符.
========================================================
$gp_from是什么样的内容?注意不能包含类似\n\r这样的字符.
调试欢乐多
比如:
Header("Cache-Control: no-cache\r\n"."Cache-Control: must-revalidate");应该拆分为:
========================================================
Header("Cache-Control: no-cache");
Header("Cache-Control: must-revalidate");
/saved_gifts/add2book.php?id=14&refer=http://test.findgift.com/product.php?id=14我该如何操作才能实现正常跳转呢?
这样的url貌似是可以正常跳转的,刚测了一下,不会出现你所遇到的问题.
是不是之前还有header?
PHP Version 5.2.1
Apache/2.2.4
5.0.27
那urlencode转一下试试
$gp_from = urlencode('
/saved_gifts/add2book.php?id=14&refer=http://test.findgift.com/product.php?id=14');
$gp_from = null;//or $gp_from = '' or...