인터넷으로 찾을려면 귀찮은거.. 요기에다 남겨둡니다.
// 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년 전
유용합니다.감사합니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3730 | 14년 전 | 941 | ||
| 3729 | 14년 전 | 761 | ||
| 3728 | 14년 전 | 753 | ||
| 3727 | 14년 전 | 740 | ||
| 3726 | 14년 전 | 1156 | ||
| 3725 | 14년 전 | 861 | ||
| 3724 | 14년 전 | 859 | ||
| 3723 |
올인할거야
|
14년 전 | 879 | |
| 3722 |
berry
|
14년 전 | 683 | |
| 3721 |
Darby
|
14년 전 | 1743 | |
| 3720 | 14년 전 | 1517 | ||
| 3719 | 14년 전 | 947 | ||
| 3718 |
gangjin
|
14년 전 | 764 | |
| 3717 |
플레이디원
|
14년 전 | 1834 | |
| 3716 | 14년 전 | 1206 | ||
| 3715 |
berry
|
14년 전 | 1046 | |
| 3714 | 14년 전 | 806 | ||
| 3713 |
|
14년 전 | 1506 | |
| 3712 | 14년 전 | 3762 | ||
| 3711 | 14년 전 | 2423 | ||
| 3710 |
SGFlash
|
14년 전 | 1119 | |
| 3709 |
프로프리랜서
|
14년 전 | 724 | |
| 3708 |
kavri
|
14년 전 | 779 | |
| 3707 | 14년 전 | 1300 | ||
| 3706 | 14년 전 | 970 | ||
| 3705 | 14년 전 | 1347 | ||
| 3704 | 14년 전 | 1394 | ||
| 3703 | 14년 전 | 1416 | ||
| 3702 |
방황하는중년
|
14년 전 | 638 | |
| 3701 | 14년 전 | 867 | ||
| 3700 | 14년 전 | 2741 | ||
| 3699 | 14년 전 | 764 | ||
| 3698 | 14년 전 | 1226 | ||
| 3697 | 14년 전 | 812 | ||
| 3696 |
|
14년 전 | 695 | |
| 3695 | 14년 전 | 1226 | ||
| 3694 | 14년 전 | 653 | ||
| 3693 |
|
14년 전 | 1339 | |
| 3692 |
아갈갤러리
|
14년 전 | 924 | |
| 3691 | 14년 전 | 1581 | ||
| 3690 | 14년 전 | 1530 | ||
| 3689 | 14년 전 | 1025 | ||
| 3688 | 14년 전 | 1253 | ||
| 3687 | 14년 전 | 939 | ||
| 3686 | 14년 전 | 1644 | ||
| 3685 | 14년 전 | 1224 | ||
| 3684 |
방황하는중년
|
14년 전 | 1229 | |
| 3683 |
휴전합시다
|
14년 전 | 1506 | |
| 3682 | 14년 전 | 1409 | ||
| 3681 | 14년 전 | 832 | ||
| 3680 | 14년 전 | 898 | ||
| 3679 | 14년 전 | 665 | ||
| 3678 | 14년 전 | 837 | ||
| 3677 |
|
14년 전 | 1585 | |
| 3676 |
|
14년 전 | 2340 | |
| 3675 | 14년 전 | 2233 | ||
| 3674 | 14년 전 | 1873 | ||
| 3673 |
|
14년 전 | 1428 | |
| 3672 | 14년 전 | 1497 | ||
| 3671 | 14년 전 | 1269 | ||
| 3670 |
아놔6636
|
14년 전 | 1527 | |
| 3669 | 14년 전 | 652 | ||
| 3668 |
아놔6636
|
14년 전 | 1276 | |
| 3667 | 14년 전 | 642 | ||
| 3666 | 14년 전 | 1082 | ||
| 3665 | 14년 전 | 858 | ||
| 3664 | 14년 전 | 1963 | ||
| 3663 | 14년 전 | 735 | ||
| 3662 | 14년 전 | 2554 | ||
| 3661 | 14년 전 | 976 | ||
| 3660 | 14년 전 | 812 | ||
| 3659 | 14년 전 | 2923 | ||
| 3658 | 14년 전 | 700 | ||
| 3657 | 14년 전 | 948 | ||
| 3656 | 14년 전 | 495 | ||
| 3655 | 14년 전 | 824 | ||
| 3654 |
쉽다zzz
|
14년 전 | 601 | |
| 3653 | 14년 전 | 1288 | ||
| 3652 | 14년 전 | 730 | ||
| 3651 | 14년 전 | 1095 | ||
| 3650 | 14년 전 | 716 | ||
| 3649 | 14년 전 | 654 | ||
| 3648 | 14년 전 | 639 | ||
| 3647 | 14년 전 | 1345 | ||
| 3646 |
|
14년 전 | 801 | |
| 3645 | 14년 전 | 683 | ||
| 3644 | 14년 전 | 703 | ||
| 3643 | 14년 전 | 1375 | ||
| 3642 |
|
14년 전 | 1380 | |
| 3641 |
|
14년 전 | 579 | |
| 3640 | 14년 전 | 2463 | ||
| 3639 | 14년 전 | 471 | ||
| 3638 |
방황하는중년
|
14년 전 | 746 | |
| 3637 | 14년 전 | 3224 | ||
| 3636 | 14년 전 | 666 | ||
| 3635 | 14년 전 | 1096 | ||
| 3634 | 14년 전 | 1444 | ||
| 3633 |
|
14년 전 | 578 | |
| 3632 | 14년 전 | 764 | ||
| 3631 | 14년 전 | 817 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기