인터넷으로 찾을려면 귀찮은거.. 요기에다 남겨둡니다.
// 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
14년 전
유용합니다.감사합니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4130 |
진정한승리v
|
14년 전 | 1067 | |
| 4129 | 14년 전 | 1431 | ||
| 4128 |
onlymilk74
|
14년 전 | 629 | |
| 4127 | 14년 전 | 540 | ||
| 4126 |
visualp
|
14년 전 | 1258 | |
| 4125 |
visualp
|
14년 전 | 1592 | |
| 4124 | 14년 전 | 1663 | ||
| 4123 | 14년 전 | 835 | ||
| 4122 |
visualp
|
14년 전 | 644 | |
| 4121 |
visualp
|
14년 전 | 1799 | |
| 4120 |
visualp
|
14년 전 | 868 | |
| 4119 |
visualp
|
14년 전 | 1241 | |
| 4118 |
그래픽노블
|
14년 전 | 694 | |
| 4117 |
visualp
|
14년 전 | 753 | |
| 4116 | 14년 전 | 741 | ||
| 4115 |
visualp
|
14년 전 | 826 | |
| 4114 |
onlymilk74
|
14년 전 | 4634 | |
| 4113 | 14년 전 | 743 | ||
| 4112 |
그래픽노블
|
14년 전 | 868 | |
| 4111 | 14년 전 | 1516 | ||
| 4110 | 14년 전 | 682 | ||
| 4109 | 14년 전 | 477 | ||
| 4108 | 14년 전 | 846 | ||
| 4107 | 14년 전 | 2116 | ||
| 4106 | 14년 전 | 1589 | ||
| 4105 |
onlymilk74
|
14년 전 | 1411 | |
| 4104 | 14년 전 | 2850 | ||
| 4103 | 14년 전 | 1956 | ||
| 4102 | 14년 전 | 932 | ||
| 4101 | 14년 전 | 990 | ||
| 4100 | 14년 전 | 945 | ||
| 4099 | 14년 전 | 1038 | ||
| 4098 |
Lonnie
|
14년 전 | 531 | |
| 4097 | 14년 전 | 831 | ||
| 4096 | 14년 전 | 977 | ||
| 4095 | 14년 전 | 2527 | ||
| 4094 | 14년 전 | 846 | ||
| 4093 | 14년 전 | 582 | ||
| 4092 |
|
14년 전 | 603 | |
| 4091 | 14년 전 | 2938 | ||
| 4090 | 14년 전 | 737 | ||
| 4089 |
|
14년 전 | 1448 | |
| 4088 | 14년 전 | 1449 | ||
| 4087 | 14년 전 | 645 | ||
| 4086 | 14년 전 | 1363 | ||
| 4085 | 14년 전 | 759 | ||
| 4084 | 14년 전 | 856 | ||
| 4083 | 14년 전 | 1817 | ||
| 4082 | 14년 전 | 1524 | ||
| 4081 | 14년 전 | 2128 | ||
| 4080 |
onlymilk74
|
14년 전 | 859 | |
| 4079 | 14년 전 | 755 | ||
| 4078 | 14년 전 | 2146 | ||
| 4077 |
DreamT
|
14년 전 | 775 | |
| 4076 | 14년 전 | 878 | ||
| 4075 | 14년 전 | 1984 | ||
| 4074 | 14년 전 | 1005 | ||
| 4073 | 14년 전 | 905 | ||
| 4072 |
onlymilk74
|
14년 전 | 659 | |
| 4071 | 14년 전 | 907 | ||
| 4070 | 14년 전 | 1921 | ||
| 4069 | 14년 전 | 484 | ||
| 4068 | 14년 전 | 2443 | ||
| 4067 | 14년 전 | 810 | ||
| 4066 | 14년 전 | 522 | ||
| 4065 | 14년 전 | 531 | ||
| 4064 | 14년 전 | 793 | ||
| 4063 | 14년 전 | 701 | ||
| 4062 | 14년 전 | 596 | ||
| 4061 | 14년 전 | 1093 | ||
| 4060 | 14년 전 | 526 | ||
| 4059 | 14년 전 | 1212 | ||
| 4058 | 14년 전 | 1582 | ||
| 4057 | 14년 전 | 536 | ||
| 4056 |
|
14년 전 | 670 | |
| 4055 |
SGFlash
|
14년 전 | 522 | |
| 4054 |
Priere
|
14년 전 | 667 | |
| 4053 | 14년 전 | 1091 | ||
| 4052 | 14년 전 | 791 | ||
| 4051 | 14년 전 | 920 | ||
| 4050 | 14년 전 | 743 | ||
| 4049 | 14년 전 | 886 | ||
| 4048 |
내꿈은대통령
|
14년 전 | 469 | |
| 4047 |
visualp
|
14년 전 | 1277 | |
| 4046 |
visualp
|
14년 전 | 617 | |
| 4045 |
visualp
|
14년 전 | 1382 | |
| 4044 | 14년 전 | 8137 | ||
| 4043 | 14년 전 | 766 | ||
| 4042 | 14년 전 | 1611 | ||
| 4041 | 14년 전 | 1328 | ||
| 4040 | 14년 전 | 1601 | ||
| 4039 | 14년 전 | 1943 | ||
| 4038 | 14년 전 | 537 | ||
| 4037 |
sider
|
14년 전 | 680 | |
| 4036 | 14년 전 | 6470 | ||
| 4035 | 14년 전 | 656 | ||
| 4034 | 14년 전 | 593 | ||
| 4033 |
techer
|
14년 전 | 1741 | |
| 4032 | 14년 전 | 647 | ||
| 4031 | 14년 전 | 640 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기