我是PHP5的新手,在我的php页面中,当我尝试重定向到另一个页面时,我得到了这个错误。
Warning: Cannot modify header information - headers already sent by (output started at <path to my php file>:<line number>) in <path to my php file> on line <line number>
在我的php文件中,我有几个include,每个都没有任何空格,在标签之前或之后
我需要将我的页面重定向到我的api服务,而paypal-payment-redirect页面是called.The下面的代码重定向,因为我expected.But没有在头中传递授权令牌。有什么办法解决这个问题吗?
<?php
function my_page_template_redirect()
{
global $wppimsettings;
if (isset($_COOKIE['login_token'])) {
if (is_page('paypal-payment-redirect')) {