인터넷으로 찾을려면 귀찮은거.. 요기에다 남겨둡니다.
// Use this header instruction to fix 404 headers
// produced by url rewriting...
header('HTTP/1.1 200 OK');
// Page was not found:
header('HTTP/1.1 404 Not Found');
// Access forbidden:
header('HTTP/1.1 403 Forbidden');
// The page moved permanently should be used for
// all redrictions, because search engines know
// what's going on and can easily update their urls.
header('HTTP/1.1 301 Moved Permanently');
// Server error
header('HTTP/1.1 500 Internal Server Error');
// Redirect to a new location:
header('Location: http://www.example.org/');
// Redriect with a delay:
header('Refresh: 10; url=http://www.example.org/');
print 'You will be redirected in 10 seconds';
// you can also use the HTML syntax:
// <meta http-equiv="refresh" content="10;http://www.example.org/ />
// override X-Powered-By value
header('X-Powered-By: PHP/4.4.0');
header('X-Powered-By: Brain/0.6b');
// content language (en = English)
header('Content-language: en');
// last modified (good for caching)
$time = time() - 60; // or filemtime($fn), etc
header('Last-Modified: '.gmdate('D, d M Y H:i:s', $time).' GMT');
// header for telling the browser that the content
// did not get changed
header('HTTP/1.1 304 Not Modified');
// set content length (good for caching):
header('Content-Length: 1234');
// Headers for an download:
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="example.zip"');
header('Content-Transfer-Encoding: binary');
// load the file to send:
readfile('example.zip');
// Disable caching of the current document:
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past
header('Pragma: no-cache');
// set content type:
header('Content-Type: text/html; charset=iso-8859-1');
header('Content-Type: text/html; charset=utf-8');
header('Content-Type: text/plain'); // plain text file
header('Content-Type: image/jpeg'); // JPG picture
header('Content-Type: application/zip'); // ZIP file
header('Content-Type: application/pdf'); // PDF file
header('Content-Type: audio/mpeg'); // Audio MPEG (MP3,...) file
header('Content-Type: application/x-shockwave-flash'); // Flash animation
// show sign in box
header('HTTP/1.1 401 Unauthorized');
header('WWW-Authenticate: Basic realm="Top Secret"');
print 'Text that will be displayed if the user hits cancel or ';
print 'enters wrong login data';
header('Pragma: no-cache');
// set content type:
header('Content-Type: text/html; charset=iso-8859-1');
header('Content-Type: text/html; charset=utf-8');
header('Content-Type: text/plain'); // plain text file
header('Content-Type: image/jpeg'); // JPG picture
header('Content-Type: application/zip'); // ZIP file
header('Content-Type: application/pdf'); // PDF file
header('Content-Type: audio/mpeg'); // Audio MPEG (MP3,...) file
header('Content-Type: application/x-shockwave-flash'); // Flash animation
// show sign in box
header('HTTP/1.1 401 Unauthorized');
header('WWW-Authenticate: Basic realm="Top Secret"');
print 'Text that will be displayed if the user hits cancel or ';
print 'enters wrong login data';
댓글 7개
14년 전
download 하는 부분과, no-cache, Last-Modified 는 찾을때마다 귀찮아서..
visualp
14년 전
감사 합니다. ㅎㅎ
14년 전
추천
14년 전
감사감사...
14년 전
ㅊㅊ요
palangsae
14년 전
하얀건 배색이고 검은건 글자고
techer
13년 전
유용합니다.감사합니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 65 | ||
| 8229 | 9년 전 | 66 | ||
| 8228 |
커네드커네드
|
9년 전 | 110 | |
| 8227 | 9년 전 | 120 | ||
| 8226 | 9년 전 | 158 | ||
| 8225 | 9년 전 | 146 | ||
| 8224 | 9년 전 | 143 | ||
| 8223 | 9년 전 | 111 | ||
| 8222 |
|
9년 전 | 179 | |
| 8221 | 9년 전 | 83 | ||
| 8220 | 9년 전 | 97 | ||
| 8219 | 9년 전 | 96 | ||
| 8218 | 9년 전 | 133 | ||
| 8217 |
star3840
|
9년 전 | 109 | |
| 8216 | 9년 전 | 158 | ||
| 8215 | 9년 전 | 105 | ||
| 8214 | 9년 전 | 221 | ||
| 8213 | 9년 전 | 154 | ||
| 8212 | 9년 전 | 81 | ||
| 8211 | 9년 전 | 241 | ||
| 8210 | 9년 전 | 239 | ||
| 8209 | 9년 전 | 331 | ||
| 8208 | 9년 전 | 213 | ||
| 8207 | 9년 전 | 220 | ||
| 8206 |
|
9년 전 | 182 | |
| 8205 | 9년 전 | 166 | ||
| 8204 | 9년 전 | 128 | ||
| 8203 | 9년 전 | 228 | ||
| 8202 | 9년 전 | 137 | ||
| 8201 | 9년 전 | 176 | ||
| 8200 | 9년 전 | 156 | ||
| 8199 | 9년 전 | 206 | ||
| 8198 | 9년 전 | 168 | ||
| 8197 | 9년 전 | 158 | ||
| 8196 | 9년 전 | 547 | ||
| 8195 | 9년 전 | 154 | ||
| 8194 | 9년 전 | 278 | ||
| 8193 | 9년 전 | 153 | ||
| 8192 | 9년 전 | 181 | ||
| 8191 | 9년 전 | 133 | ||
| 8190 | 9년 전 | 126 | ||
| 8189 | 9년 전 | 185 | ||
| 8188 | 9년 전 | 125 | ||
| 8187 | 9년 전 | 138 | ||
| 8186 | 9년 전 | 138 | ||
| 8185 | 9년 전 | 305 | ||
| 8184 | 9년 전 | 105 | ||
| 8183 | 9년 전 | 320 | ||
| 8182 | 9년 전 | 163 | ||
| 8181 | 9년 전 | 126 | ||
| 8180 | 9년 전 | 690 | ||
| 8179 | 9년 전 | 480 | ||
| 8178 | 9년 전 | 306 | ||
| 8177 |
kiplayer
|
9년 전 | 309 | |
| 8176 | 9년 전 | 346 | ||
| 8175 | 9년 전 | 217 | ||
| 8174 | 9년 전 | 235 | ||
| 8173 | 9년 전 | 341 | ||
| 8172 | 9년 전 | 192 | ||
| 8171 | 9년 전 | 179 | ||
| 8170 | 9년 전 | 293 | ||
| 8169 |
커네드커네드
|
9년 전 | 254 | |
| 8168 | 9년 전 | 314 | ||
| 8167 | 9년 전 | 315 | ||
| 8166 | 9년 전 | 231 | ||
| 8165 | 9년 전 | 161 | ||
| 8164 | 9년 전 | 299 | ||
| 8163 | 9년 전 | 279 | ||
| 8162 | 9년 전 | 293 | ||
| 8161 | 9년 전 | 291 | ||
| 8160 |
|
9년 전 | 483 | |
| 8159 | 9년 전 | 423 | ||
| 8158 | 9년 전 | 243 | ||
| 8157 | 9년 전 | 370 | ||
| 8156 | 9년 전 | 273 | ||
| 8155 | 9년 전 | 249 | ||
| 8154 |
00년생용띠
|
9년 전 | 596 | |
| 8153 | 9년 전 | 224 | ||
| 8152 |
|
9년 전 | 401 | |
| 8151 | 9년 전 | 404 | ||
| 8150 | 9년 전 | 497 | ||
| 8149 |
Jangfolk
|
9년 전 | 343 | |
| 8148 | 9년 전 | 163 | ||
| 8147 | 9년 전 | 370 | ||
| 8146 | 9년 전 | 429 | ||
| 8145 | 9년 전 | 375 | ||
| 8144 | 9년 전 | 341 | ||
| 8143 | 9년 전 | 188 | ||
| 8142 | 9년 전 | 425 | ||
| 8141 | 9년 전 | 378 | ||
| 8140 | 9년 전 | 925 | ||
| 8139 | 9년 전 | 254 | ||
| 8138 |
전갈자리남자
|
9년 전 | 383 | |
| 8137 | 9년 전 | 391 | ||
| 8136 | 9년 전 | 742 | ||
| 8135 |
|
9년 전 | 790 | |
| 8134 |
PlayPixel
|
9년 전 | 507 | |
| 8133 |
|
9년 전 | 431 | |
| 8132 | 9년 전 | 444 | ||
| 8131 | 9년 전 | 808 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기