½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 112 | Á¶È¸¼ö 4,545 | µî·ÏÀÏ 2004-10-04 16:35:31

´Ð³×ÀÓ

HappyCGI

À̸ÞÀÏ

webmaster@happycgi.com

Á¦¸ñ

[´äº¯] [ÀçÁú¹®] ÇϳªÀÇ °èÁ¤¿¡ ´ÙÁß µµ¸ÅÀÎ ¿¬°á½Ã ¹®Á¦
³»¿ë

ÇØÇÇCGI ÀÔ´Ï´Ù.

´äº¯ÀÌ ´Ê¾úÁÒ?

¾Æ·¡ Áú¹®¿¡ ´äº¯À» Âü°íÇϽʽÿÀ.

[Áú¹®]

1) µµ¸ÅÀÎÀ» ´Ã¸®·Á¸é  $xxx="µµ¸ÅÀÎ" ÀÌ·¸°Ô °è¼Ó Ãß°¡ÇÏ°í elsifºÎºÐÀ» °è¼Ó Ãß°¡¸é µÇ´Â °ÍÀÎÁö¿ä?

³× elsif¸¸ °è¼Ó Ãß°¡ Çϼ¼¿ä.

 

2) À§¿¡¼­ º¸¸é cµµ¸ÅÀÎÀ» Á¤ÇØÁÖÁö ¾ÊÇߴµ¥¡¦¡¦ µµ¸ÅÀÎÁöÁ¤ÀÌ ¾ø°Å³ª µµ¸ÅÀÎÁöÁ¤ÀÌ µÇ¾îÀ־ if, elsif¿¡ ¾øÀ¸¸é  elseÀÌ ºÎºÐÀ» ¸ðµÎ µû¸£´Â °ÍÀÎÁö¿ä?

³×. ±×·¸´ä´Ï´Ù. ¾î´À°Í¿¡µµ ÇØ´çÇÏÁö ¾ÊÀ» °æ¿ì else ¹®À¸·Î °©´Ï´Ù.

3) À§ cgi¸¦ ¾Æ·¡Ã³·³ ÀÀ¿ëÇÏ·Á°í Çϴµ¥ À߸øµÈ ºÎºÐÀÌ ÀÖ´ÂÁö ºÁÁÖ¼¼¿ä.
Á¦°¡ ¸¸µç°ÍÀÌ ¾Æ´Ï°í ¶æÀ» ¸ð¸£°í ¼Ò µÞ°Å¸§ Ä¡´Ù Áã ÀâµíÀÌ ²ç ¸ÂÃç¼­ µÇ±ä µÇ´Âµ¥¡¦¡¦ <<END_LINE ¿Í END_LINE
Àº ¹«½¼ ¶æÀ» °¡Áö´Â °ÍÀÌÁö ÁÖ¼® Á» ´Þ¾Æ ÁÖ¼¼¿ä.

if ($ENV{'SERVER_NAME'}=~/$a/) {
   print "Content-type:text/html\n\n"; <== html Çü½ÄÀ¸·Î Ãâ·ÂÇÏ°Ú´Ù°í ¼±¾ðÇÕ´Ï´Ù.
   &Asite_PRINT; <== sub Asite_PRINT ÀÇ ¼­ºê·çƾÀ» È£ÃâÇÏ°Ú´Ù´Â °Ì´Ï´Ù.
   exit; <== ÇÁ·Î±×·¥À» Á¤ÁöÇÑ´Ù´Â ¸»ÀÌÁÒ.

sub Asite_PRINT{   <== ¼­ºê·çƾÀ» ¼±¾ðÇÏ´Â ºÎºÐÀÔ´Ï´Ù.
print <<END_LINE;  <== END_LINE ¶ó´Â ºÎºÐ³»¿¡ htmlÀ» ±×³É Ãâ·ÂÇØÁÖ°Ú´Ù´Â ¸»ÀÔ´Ï´Ù.

htmlű׻ðÀԺκÐ

END_LINE   <== ¿©±â ±îÁö END_LINE ÀÌ´Ï ¿ä »çÀÌ¿¡ ÀÖ´Â°Ç ÀüºÎ ±×³É Ãâ·ÂÇØÁÝ´Ï´Ù.
exit; <== ÇÁ·Î±×·¥À» ³¡³»°Ú´Ù´Â °ÍÀÌÁÒ.
}

ÁÁÀº ÇÏ·çµÇ¼¼¿ä.

 

 

 

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
namdengi 2004-10-04 18:07:23
´ä±Û

¿î¿µÀÚ´Ô ¹Ù»Ú½Å Áß¿¡µµ ¼ºÀDz¯ ´äº¯À» Áּż­ ³Ê¹«³Ê¹« °¨»çÇÕ´Ï´Ù.

ÀÌÀü°Ô½Ã±Û [Áú¹®] ¾ÆÀÌÇÁ·¹ÀÓ Å¸°Ù ¼³Á¤ 2004-09-29 02:55:46
´ÙÀ½°Ô½Ã±Û Ç÷¹À̾ ã½À´Ï´Ù. 2004-10-05 16:15:05