티스토리 뷰
header
(PHP 4, PHP 5)
header — Send a raw HTTP header
Description
void header ( string
$string
[, bool $replace
= true [, int $http_response_code
]] )header() is used to send a raw HTTP header. See the » HTTP/1.1 specification for more information on HTTP headers.
Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include, or require, functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file.
<html>
<?php
/* This will give an error. Note the output
* above, which is before the header() call */
header('Location: http://www.example.com/');
?>
상세 설명: http://php.net/manual/en/function.header.php
728x90
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- java.sql
- 표현 언어(expression language)
- REST API
- MainActor
- java 키워드 정리
- error-java
- 람다식(lambda expression)
- .submit()
- 스프링 시큐리티(spring security)-http basic 인증
- docker
- 문자 자르기
- java web-mvc
- In App Purchase
- jstl(java standard tag library)
- 진수 변환
- nl2br
- 스프링 프레임워크(spring framewordk)
- await
- 특정 문자를 기준으로 자르기
- java-개발 환경 설정하기
- jsp 오픈 소스
- System.Diagnostics
- 스프링 시큐리티(spring security)
- 스프링 프레임워크(spring framework)
- 인텔리제이(intellij)
- system.io
- jstl(java standard tag library)-core
- 제품 등록
- 메이븐(maven)
- React
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함