가능한 중복은 :
Headers already sent by PHPPHP 헤더를 사용하여 로그 아웃 페이지에 리디렉션()
나는 그래서이 같은 시도 일부 페이지로 리디렉션합니다.
www.example.com/logout.php?redirect=www.index-page.com/index.php
echo $redirect = "'Location: http://".$_GET['redirect']."'";
//redirects to index
header($redirect);
하지만 저에게는 효과가 없습니다. ther 제안입니다. 하지가 Warning: Cannot modify header information - headers already sent by
$redirect = "Location: http://". $_GET['redirect'];
header($redirect);
기본 디버깅이 먼저 필요합니다. 오류를 기록 (및/또는 표시)하고 PHP를 봅니다. 오류 기록. 또한 중복 된 질문에 대해 더 많이 배우게됩니다. – hakre