인터넷으로 찾을려면 귀찮은거.. 요기에다 남겨둡니다.
// 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년 전
유용합니다.감사합니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7430 |
|
10년 전 | 4918 | |
| 7429 | 10년 전 | 1748 | ||
| 7428 |
멋진남자임
|
10년 전 | 1119 | |
| 7427 |
sdflksdj2
|
10년 전 | 780 | |
| 7426 | 10년 전 | 1321 | ||
| 7425 | 11년 전 | 1348 | ||
| 7424 | 11년 전 | 1018 | ||
| 7423 |
SeungYeon
|
11년 전 | 528 | |
| 7422 | 11년 전 | 773 | ||
| 7421 |
sdflksdj2
|
11년 전 | 648 | |
| 7420 | 11년 전 | 939 | ||
| 7419 |
|
11년 전 | 1355 | |
| 7418 |
멋진남자임
|
11년 전 | 1375 | |
| 7417 | 11년 전 | 567 | ||
| 7416 |
senseme
|
11년 전 | 1185 | |
| 7415 | 11년 전 | 934 | ||
| 7414 | 11년 전 | 686 | ||
| 7413 | 11년 전 | 4814 | ||
| 7412 | 11년 전 | 4387 | ||
| 7411 |
holla
|
11년 전 | 866 | |
| 7410 | 11년 전 | 4210 | ||
| 7409 | 11년 전 | 3893 | ||
| 7408 | 11년 전 | 4245 | ||
| 7407 | 11년 전 | 5023 | ||
| 7406 | 11년 전 | 4699 | ||
| 7405 | 11년 전 | 4251 | ||
| 7404 | 11년 전 | 724 | ||
| 7403 | 11년 전 | 5639 | ||
| 7402 | 11년 전 | 1457 | ||
| 7401 |
|
11년 전 | 946 | |
| 7400 | 11년 전 | 2951 | ||
| 7399 |
멋진남자임
|
11년 전 | 878 | |
| 7398 |
파랑새1597
|
11년 전 | 2625 | |
| 7397 | 11년 전 | 2231 | ||
| 7396 |
basketball
|
11년 전 | 1322 | |
| 7395 | 11년 전 | 1563 | ||
| 7394 | 11년 전 | 890 | ||
| 7393 | 11년 전 | 2034 | ||
| 7392 | 11년 전 | 815 | ||
| 7391 |
잘살아보자
|
11년 전 | 5315 | |
| 7390 |
잘살아보자
|
11년 전 | 2183 | |
| 7389 |
잘살아보자
|
11년 전 | 3292 | |
| 7388 |
파랑새1597
|
11년 전 | 895 | |
| 7387 | 11년 전 | 1072 | ||
| 7386 |
프리랜서퍼블리셔
|
11년 전 | 942 | |
| 7385 | 11년 전 | 1547 | ||
| 7384 |
울라라라우
|
11년 전 | 869 | |
| 7383 | 11년 전 | 1516 | ||
| 7382 |
잘살아보자
|
11년 전 | 4198 | |
| 7381 |
잘살아보자
|
11년 전 | 1961 | |
| 7380 |
잘살아보자
|
11년 전 | 1911 | |
| 7379 |
잘살아보자
|
11년 전 | 5872 | |
| 7378 |
senseme
|
11년 전 | 1840 | |
| 7377 |
잘살아보자
|
11년 전 | 2704 | |
| 7376 | 11년 전 | 2358 | ||
| 7375 |
잘살아보자
|
11년 전 | 1017 | |
| 7374 |
잘살아보자
|
11년 전 | 3110 | |
| 7373 |
잘살아보자
|
11년 전 | 2448 | |
| 7372 |
잘살아보자
|
11년 전 | 5815 | |
| 7371 |
잘살아보자
|
11년 전 | 3438 | |
| 7370 |
잘살아보자
|
11년 전 | 1884 | |
| 7369 |
잘살아보자
|
11년 전 | 2138 | |
| 7368 |
ksdhtm56
|
11년 전 | 521 | |
| 7367 | 11년 전 | 1387 | ||
| 7366 | 11년 전 | 901 | ||
| 7365 | 11년 전 | 3504 | ||
| 7364 |
잘살아보자
|
11년 전 | 1352 | |
| 7363 |
잘살아보자
|
11년 전 | 1318 | |
| 7362 |
잘살아보자
|
11년 전 | 1463 | |
| 7361 | 11년 전 | 3565 | ||
| 7360 | 11년 전 | 3528 | ||
| 7359 | 11년 전 | 3352 | ||
| 7358 |
멋진남자임
|
11년 전 | 993 | |
| 7357 | 11년 전 | 3378 | ||
| 7356 | 11년 전 | 2578 | ||
| 7355 | 11년 전 | 3146 | ||
| 7354 |
파랑새1597
|
11년 전 | 623 | |
| 7353 |
잘살아보자
|
11년 전 | 2394 | |
| 7352 |
잘살아보자
|
11년 전 | 2380 | |
| 7351 |
잘살아보자
|
11년 전 | 2459 | |
| 7350 |
잘살아보자
|
11년 전 | 1431 | |
| 7349 |
잘살아보자
|
11년 전 | 1912 | |
| 7348 |
잘살아보자
|
11년 전 | 1228 | |
| 7347 |
잘살아보자
|
11년 전 | 1050 | |
| 7346 |
멋진남자임
|
11년 전 | 1621 | |
| 7345 | 11년 전 | 948 | ||
| 7344 | 11년 전 | 3833 | ||
| 7343 | 11년 전 | 3605 | ||
| 7342 | 11년 전 | 1229 | ||
| 7341 | 11년 전 | 2476 | ||
| 7340 |
|
11년 전 | 893 | |
| 7339 | 11년 전 | 1706 | ||
| 7338 | 11년 전 | 3310 | ||
| 7337 | 11년 전 | 3610 | ||
| 7336 | 11년 전 | 4537 | ||
| 7335 | 11년 전 | 934 | ||
| 7334 | 11년 전 | 1499 | ||
| 7333 | 11년 전 | 2905 | ||
| 7332 |
|
11년 전 | 1070 | |
| 7331 |
KeePin뽁이
|
11년 전 | 1059 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기