|
|
|
|
RE:¾Æ.. ´Ù½ÃÇѹø |
|
¹Ý°©½À´Ï´Ù. COMPUZ.com °ü¸®ÀÚÀÔ´Ï´Ù.
>ÇÑÂü ·ÎÄà °Ë»ö¿£Áø ¼³Ä¡ÁßÀε¥, ¿©±â¼ ¸·¸·À̱º¿ä. ±Û¸¸ ¸¹Áö ±Ý¹æ ÇØÁֽǰŶó »ý°¢µì´Ï´Ù. Á» µµ¿ÍÁֽʽÿÀ T_T 2Ʋ° ¸Å´Þ¸®°í ÀÖ½À´Ï´Ù.
>
>
> # 1. °Ë»ö°æ·Î
> # °Ë»öÇÒ °æ·Î¸¦ ÁöÁ¤ÇÕ´Ï´Ù.
> # ÇöÀç ½ÇÇàÇÏ·Á´Â CGI¸¦ ±âÁØÀ¸·Î °æ·Î¸¦ ÁöÁ¤ÇÏ¿©¾ß ÇÕ´Ï´Ù.
> # ´Ù¼öÀÏ °æ¿ì './pds|./board|./bbs' ¿Í °°ÀÌ '|' ±¸ºÐÀÚ·Î
> # ºÐ¸®ÇØÁÖ½Ã¸é ¸ðµÎ °Ë»öÇÕ´Ï´Ù.
> # ÇöÀç°æ·Î´Â './' À̶ó°í Ç¥ÇöÇÏ°í,
> # »óÀ§´Â '../' À̶ó°í Ç¥ÇöÇϴ°ÍÀÌ Á¤È®ÇÕ´Ï´Ù.
> $dir_s = '../'; <--------------------------------------- ÀÌ°Å °æ·Î ÁöÁ¤ÀÌ¿ä
ÇöÀç °í°´´Ô °èÁ¤ÀÇ ±¸Á¶°¡ ´ÙÀ½°ú °°´Ù°í °¡Á¤ÇÏ°í ´äº¯µå¸®µµ·Ï ÇÏ°Ú½À´Ï´Ù.
public_html ¦¨ search ¦¨ compuz
| ¦§ g3
| ¦¦ data
¦§ bbs
¦§ test
¦¦ mozila
¸¸¾à °í°´´Ô²²¼ ¼³Ä¡ÇϽô ·ÎÄ® °Ë»ö¿£ÁøÀÌ public_html/search Æú´õ¿¡ ÀÖ°í,
°Ë»öÇÒ ´ë»óÀÌ public_html/search/compuz Æú´õ¿Í public_html/test Æú´õ¿¡ ÀÖÀ»°æ¿ì
¾Æ·¡¿Í °°ÀÌ ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.
$dir_s = './compuz|../test';
> # 2. ¹èÁ¦°æ·Î
> # »ó±â °Ë»ö°æ·Î¿¡ Æ÷ÇÔµÈ °æ·ÎÁß ÀϺΠ°æ·Î¸¦ °Ë»ö´ë»ó¿¡¼
> # Á¦¿ÜÇÏ°íÀÚ ÇÒ °æ¿ì ÁöÁ¤ÇÕ´Ï´Ù.
> # ƯÈ÷ cgi-bin °ú °°ÀÌ º¸¾È»ó ¹®Á¦°¡ ÀÖ´Â °æ·Î´Â ¿©±â¿¡
> # ±â·ÏÇÏ¿© °Ë»ö´ë»ó¿¡¼ Á¦¿ÜÇÏ½Ç °ÍÀ» ±ÇÀåÇÕ´Ï´Ù.
> # ¸¶Âù°¡Áö·Î, '|' ±¸ºÐÀÚ·Î ´Ù¼öÀÇ °æ·Î¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
> #$dir_n = '../demo|../cgi-bin';
> $dir_n = ''; <--------------------------------------- ÀÌ°Å °æ·Î ÁöÁ¤ÀÌ¿ä
¸¸¾à public_html/search/data Æú´õ¿Í public_html/search/g3 Æú´õ, public_html/bbs Æú´õ, public_html/mozila Æú´õÀÇ µ¥ÀÌÅÍ´Â °Ë»ö°á°ú¿¡ Æ÷ÇÔµÇÁö ¾Ê±æ ¿øÇÏ½Å´Ù¸é ¾Æ·¡¿Í °°ÀÌ ÁöÁ¤ÇØÁÖ½Ã¸é µË´Ï´Ù.
$dir_n = './data|./g3|../mozila|../bbs';
> # 3. Æ÷ÇÔÈ®ÀåÀÚ(Positive)
> # ±âº»ÀûÀ¸·Î TEXT Çü½ÄÀÇ ÆÄÀϸ¸(À̹ÌÁö¿Í °°Àº ÆÄÀÏÀº ¿øõÀûÀ¸·Î
> # °Ë»ö´ë»ó¿¡¼ Á¦¿ÜµË´Ï´Ù.) °Ë»öÅä·Ï µÇ¾îÀÖÁö¸¸, ÈÀÏ È®ÀåÀÚ¸¦
> # ÁöÁ¤ÇÏ¿© ÀϺΠÆÄÀÏÇü½Ä¸¸À» °Ë»ö´ë»ó¿¡ Æ÷ÇÔ½Ãų ¼ö ÀÖ½À´Ï´Ù.
> # ÁöÁ¤ÇÏÁö ¾ÊÀ» °æ¿ì ¸ðµç ÆÄÀÏÇü½ÄÀÌ Æ÷ÇԵǴ °ÍÀ¸·Î º¾´Ï´Ù.
> # ¸¶Âù°¡Áö·Î, '|' ±¸ºÐÀÚ·Î ´Ù¼öÀÇ ÆÄÀÏÇü½ÄÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
> $file_i = ''; <--------------------------------------- ÀÌ°Å¿ä
°Ë»öÇÒ ´ë»óÀÌ À§¿¡ ³ª¿ÍÀִ°Íó·³ ±âº»ÀûÀ¸·Î txt ÆÄÀϸ¸ °Ë»öÅä·Ï µÇ¾îÀÖÁö¸¸,
txt ÆÄÀÏÀÌ ¾Æ´Ñ data ¶õ È®ÀåÀÚ¸¦ °¡Áø ÆÄÀϱîÁö °Ë»öÇÏ½Ã±æ ¿øÇϽŴٸé,
¾Æ·¡¿Í °°ÀÌ ÀÔ·ÂÇØÁÖ½Ã¸é µË´Ï´Ù.
$file_i = 'data';
> # 4. ¹èÁ¦È®ÀåÀÚ(Nagative)
> # À§¿Í ¸ðµç »çÇ×ÀÌ µ¿ÀÏÇÏÁö¸¸, ´ÜÁö ¸ðµç ÆÄÀÏÇü½ÄÁß ÀϺθ¸À»
> # °Ë»ö´ë»ó¿¡¼ Á¦¿Ü½ÃÅ°°íÀÚ ÇÒ¶§ ¾²ÀÔ´Ï´Ù.
> # À§ÀÇ Æ÷ÇÔÈ®ÀåÀÚ¿Í ¿©±âÀÇ ¹èÁ¦È®ÀåÀÚ´Â ¾çÂÊ ¸ðµÎ¸¦ ÁöÁ¤ÇÒ ¼ö´Â
> # ¾ø½À´Ï´Ù. ¸ðµç ÆÄÀÏÁß ÀϺθ¸ »©°í½ÍÀ»¶§´Â ÀÌ°÷¿¡ ÀûÀ¸¸é µÇ°í
> # ¸ðµçÆÄÀÏÁß ÀϺθ¸ ³Ö°í ½ÍÀ»¶§´Â À§ÀÇ Æ÷ÇÔÈ®ÀåÀÚ¿¡ ÀûÀ¸¸é µË´Ï´Ù.
> # ¾çÂÊ ¸ðµÎ °ªÀÌ ¾øÀ» °æ¿ì ¸ðµçÆÄÀÏÀÌ Æ÷ÇԵǴ °ÍÀ¸·Î º¾´Ï´Ù.
> # (´Ü, TEXTÇü½Ä¸¸ Æ÷ÇԵ˴ϴÙ.)
> # ¸¶Âù°¡Áö·Î, '|' ±¸ºÐÀÚ·Î ´Ù¼öÀÇ ÆÄÀÏÇü½ÄÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
> $file_n = 'cgi|pl'; <--------------------------------------- ÀÌ°Å ÁöÁ¤ÀÌ¿ä
Á¦·Îº¸µåÀÇ config.php ÆÄÀÏÀÇ °æ¿ì, °í°´´Ô °èÁ¤ÀÇ DB Á¢¼Ó ¾ÆÀ̵ð¿Í Æнº¿öµå°¡ ÀúÀåµÇ¾îÀÖ½À´Ï´Ù. ÀÌ·¯ÇÑ ÆÄÀÏÀÌ °Ë»ö ´ë»óÀÌ µÇ¾î¼´Â ¾ÈµÇ°ÚÁö¿ä.. ^^;
´ëºÎºÐÀÇ cgi ÆÄÀÏ ¹× php ÆÄÀϵîÀº º¸¾È»ó °ø°³µÇ¾î¼´Â ¾ÈµË´Ï´Ù.
µû¶ó¼ cgi , pl , php È®ÀåÀÚ¸¦ °¡Áø ÆÄÀÏÀº °Ë»ö´ë»ó¿¡¼ Á¦¿ÜÇÏ½Ç °æ¿ì, ¾Æ·¡¿Í °°ÀÌ Àû¾îÁÖ½Ã¸é µË´Ï´Ù.
$file_n = 'cgi|pl|php';
> # 5. °á°ú¹° ±âº» Target Frame ÁöÁ¤
> # °Ë»ö°á°ú¿¡ ÀÚµ¿À¸·Î »ý¼ºµÇ´Â ¸µÅ©(A Tag)ÀÇ Target ¿É¼ÇÀ»
> # ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÇÊ¿ä¾øÀ» °æ¿ì ''·Î ÁöÁ¤ÇÕ´Ï´Ù.
> # '_top' µî°ú °°ÀÌ ÁöÁ¤µÈ ÇÁ·¹ÀÓ¸íÀ̳ª »ç¿ëÀÚ°¡ Á¤ÀÇÇÑ
> # ÇÁ·¹ÀÓ¸íÀ¸·Î ÁöÁ¤ÇÒ ¼ö ÇÒ ¼ö ÀÖ½À´Ï´Ù.
> # '°Ë»öȸé'À» Ÿ ¹®¼¿¡ Æ÷ÇÔÇϰųª, º°µµÀÇ Ã¢(Window)À»
> # ¶ç¿ö¼ »ç¿ëÇÒ¶§ À¯¿ëÇÕ´Ï´Ù.
> $target = '_self';
>
> # 6. HOME URL
> # °Ë»ö°á°úȸ鿡¼ ȨÀ¸·Î À̵¿ÇÒ ¼ö ÀÖµµ·Ï URLÀ» ÁöÁ¤ÇÕ´Ï´Ù.
> # Ex. 'http://way.co.kr/home.htm'
> $home_url = '/'; <--------------------------------------- ÀÌ°Å¿ä
°í°´´Ô ȨÆäÀÌÁöÀÇ URL À» Àû¾îÁÖ½Ã¸é µË´Ï´Ù.
À§¿¡ ¿¹°¡ ³ª¿ÍÀÖµíÀÌ ¾Æ·¡¿Í °°ÀÌ Àû¾îÁÖ½Ã¸é µË´Ï´Ù.
> # 7. °á°úÈ¸é ¹è°æÀ̹ÌÁö URL
> $background = '../image/bg.gif'; <--------------------------------------- ÀÌ°Å ÁöÁ¤ÀÌ¿ä
°Ë»ö °á°ú°¡ Ãâ·ÂµÇ´Â ÆäÀÌÁö¿¡ ¹è°æ À̹ÌÁö¸¦ ¼³Ä¡ÇϽðíÀÚ ÇÒ¶§,
À§¿Í °°ÀÌ ¹è°æ À̹ÌÁöÀÇ °æ·Î¸¦ Àû¾îÁÖ½Ã¸é µË´Ï´Ù.
> # 8.whereis perl ¶Ç´Â which perl µîÀÇ ¸í·ÉÀ» ¼öÇàÇÏ¿© ½Ã½ºÅÛ¿¡ ¼³Ä¡µÈ
> perl ÀÇ °æ·Î¸¦ ÆľÇÇÕ´Ï´Ù.
> ¸¸¾à perlÀÇ °æ·Î°¡ /usr/bin/perlÀÌ ¾Æ´Ï¶ó¸é,
> vi³ª pico µîÀ¸·Î way-srch.cgi¸¦ ¿¾î ù¹ø° ¶óÀÎÀ» ½Ã½ºÅÛÀÇ perl°æ·Î·Î
> ¼öÁ¤ÇÕ´Ï´Ù. <--------------------------------------- ÀÌ°Ç ÀÌÇØ°¡ Á»
COMPUZ.com ÀÇ perl °æ·Î´Â /usr/bin/perl °¡ ¸ÂÀ¸¹Ç·Î ¼öÁ¤ÇϽÃÁö ¾ÊÀ¸¼Åµµ µË´Ï´Ù.
°¨»çÇÕ´Ï´Ù. |
|
writer ip : 211.111.3.65 , modify 211.111.3.65 , 2004/05/14 10:39:39
|
|
|
|
|
|
|
|
|
ÄÄÇ»Áî´åÄÄ(´ëÇ¥ ÀåÁ¤ÁÖ) ÀÎõ±¤¿ª½Ã µ¿±¸ ¹æÃà·Î83¹ø±æ 23, 24µ¿ 333È£
»ç¾÷ÀÚµî·Ï¹øÈ£ 137-05-83351, Åë½ÅÆǸŠÀÎõ µ¿±¸ 03-78È£, °³ÀÎÁ¤º¸Ã¥ÀÓÀÚ ÀåÁ¤ÁÖ
|
|
|