|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 93 article |
2002-02-02 15:10:08 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
ÇÁ·¹ÀÓ(frame) »õ·Î°íħ(¸®ÇÁ·¹½¬, refresh)ÇÒ ¶§ ÆäÀÌÁö À¯ÁöÇϱâ |
|
|
±Û¾´ÀÌ:Fencer
Á¦¸ñ ±×´ë·Î PHP·Î »ý¼ºÇÑ ÇÁ·¹ÀÓ¿¡¼ »õ·Î°íħÇÒ ¶§ ÆäÀÌÁö À¯ÁöÇϱâÀÔ´Ï´Ù.
ÇÊ¿äÇϽŠºÐµé ¸¹¾ÒÀ¸¸®¶ó º¾´Ï´Ù. ;;
ÀüºÎÅÍ PHP¸¦ ÀÌ¿ëÇØ ¸¸µç ÇÁ·¹ÀÓ ÆäÀÌÁö¿¡¼ ºê¶ó¿ìÀúÀÇ refresh ¹öÆ°À» ´©¸¦ ¶§
ÇöÀç º¸°í ÀÖ´Â ÆäÀÌÁö°¡ ¾Æ´Ï¶ó src=''·Î Á¤ÇØÁá´ø ÆäÀÌÁö°¡ ¶ß´Â °É º¸°í
ºê¶ó¿ìÀú°¡ html ÆäÀÌÁö¿Í php ÆäÀÌÁö °£¿¡ ¹º°¡ Â÷À̸¦ ´À³¤´Ù°í »ý°¢ÇØ ¿Ô´Âµ¥..
¹¹ Àü¿¡´Â º° Çʿ伺À» ¸ø ´À²¼±â ¶§¹®¿¡ + ±ÍÂú¾Æ¼ ±×³É µÎ¾ú´Ù°¡
'XXXX XX¸¦ À§ÇÑ °ÍÀε¥ ´ëÃæ ¸¸µé ¼ö ¾ø´Ù'´Â ÀÚ¼¼·Î 6^_^;;
Q&A³ª Tip&Tech¸¦ Á» ã¾ÆºÃ´õ´Ï..
¾Æ¹«µµ ´äº¯ÀÌ ¾ø¾ú´õ±º¿ä. ¤Ño¤Ñ;
-----------------------------------------------------------------------------
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: \"$LastModified\"");
-----------------------------------------------------------------------------
º¸½Ã¸é ¹ºÁö ±Ý¹æ ¾Æ½Ã°ÚÁÒ? ^_^
º¹»çÇشٰ¡ ÇÁ·¹ÀÓ »ý¼ºÇÏ´Â ÆÄÀÏÀÇ ¸Ç À§¿¡ ³ÖÀ¸½Ã¸é µË´Ï´Ù.
´Ù¸¥ ºê¶ó¿ìÀú´Â È®ÀÎ ¾È ÇØ ºÃ°í.. À;¥»Ô·Î·¯¸¸.. È®ÀÎÇß½À´Ï´Ù.
'ÀÚµ¿À¸·Î', 'ÆäÀÌÁö¸¦ ¿ ¶§¸¶´Ù' ¸ðµÎ Àß µÇ´Â±º¿ä.
ÀÏ¹Ý html ¹®¼¿Í ºñ±³ÇØ º¼ ¶§ (ÀϹÝÀûÀ¸·Î) PHP°¡ »Ñ·ÁÁÖ´Â ³»¿ëÀº
html content ºÎºÐÀº ¶È°°Áö¸¸, headerÀÇ Last-Modified ÀÇ ½Ã°¢ÀÌ ¸Å¹ø ´Þ¶óÁý´Ï´Ù.
(»ç½Ç ¾Æ¿¹ ¾ø½À´Ï´Ù. -_-;;; ¿ø·¡ µ¿ÀûÀÎ resource´Ï±î ´ç¿¬ÇÏÁö¿ä.)
µû¶ó¼ PHP¿¡¼ header¿¡ Cache-ControlÀ» ÃÖ´ë·Î Àâ¾ÆÁ൵
»õ·Î ¹Þ¾Æ¿Â ¼öÁ¤ ½Ã°¢À» ¹ÙÅÁÀ¸·Î frame Àüü¸¦ »õ·Î°íħÇÏ´Â °ÍÀ¸·Î º¸ÀÔ´Ï´Ù.
±×·¡¼ PHP ¿ª½Ã header¿¡ ÆÄÀÏÀÇ ½ÇÁ¦ ¼öÁ¤ ½Ã°¢À» ³Ö¾îÁÖµµ·Ï ÇÏ¿´½À´Ï´Ù.
ETag´Â HTTP/1.1 ¹®¼¿¡ Àֱ淡 ³Ö¾îºÃ½À´Ï´Ù.
The entity tag MAY be used for comparison with other entities from the same resource.
±×·³~ ÁÁÀº ÇÏ·ç µÇ¼¼¿ä~ ^_^/"
|
|
Page Loading [ 0.03 Sec ]
SQL Time [ 0 Sec ]
|
|
|