common.lib 메타태그를 이용한 URL이동 오류
따란
4년 전
조회 4,853
// 메타태그를 이용한 URL 이동 // header("location:URL") 을 대체 function goto_url($url) { $url = str_replace("&", "&", $url); //echo "";
if (!headers_sent()) header('Location: '.$url); else { echo ''; echo ''; } exit; }
라는 내용인데....
Warning: Header may not contain more than a single header, new line detected in
...이라는 내용이 뜨더라구요 오류 항목은 header('Location: '.$url); 이쪽이었습니다
무엇이 문제일까요?
댓글을 작성하려면 로그인이 필요합니다.
답변 4개
답변을 작성하려면 로그인이 필요합니다.
로그인