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

´Ð³×ÀÓ

Anonymous

À̸ÞÀÏ

Á¦¸ñ

µµ¿ÍÁÖ¼¼¿ä. ÀÌÁ¦ ÆÞÀ» ½ÃÀÛÇϴµ¥¿ä..
³»¿ë
ÀÌÁ¦ CGI¸¦ ¹è¿ö¼­ Á¦ ȨÆäÀÌÁö¿¡ Ä«¿îÅ͸¦ ¿Ã¸±·Á±¸ ÇÕ´Ï´Ù.
±×·±µ¥ ±âÃʺÎÅÍ ¾î·Æ±º¿ä.

Á¦°¡ test.html ¹®¼­¸¦ ¸¸µé°í ÀÌ ¹®¼­¿¡¼­ yes.cgi¸¦ È£ÃâÇÒ·Á°í Çß½À´Ï´Ù.

±×·±µ¥ html¹®¼­ÀÇ ¾î¶² űװ¡ ºê¶ó¿ìÀú¿¡¼­ perl¸¦ È£ÃâÇÏ¿© yes.cgi¸¦

½ÇÇà½ÃÅ°´Â Áö ¸ð¸£°Ú±º¿ä. ¿ì¼± Á¦°¡ ÀÛ¼ºÀ» ÇØ ºÃ½À´Ï´Ù.

(1) ¸ÕÀú test.html ¹®¼­ÀÇ ³»¿ëÀº

<html>
<head>
<title>perlÀ»¹è¿ì±âÀ§ÇÑ¿¹Á¦ÀÔ´Ï´Ù..</title>
<meta name="generator" content="Namo WebEditor v4.0">
<meta http-equiv="refresh" content="0;URL=yes.cgi">
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<h2 align="center">perlÀ» ¹è¿ì°í ÀÖ½À´Ï´Ù.</h1>
<p align="left"> </p>
<a href="yes.cgi" target="_self"><font size="2" color="#66CCFF">°øÁö»çÇ×</font></a>
</body>

</html>


(2) ±×¸®°í ´ÙÀ½À¸·Î yes.cgi ¹®¼­ÀÇ ³»¿ëÀº
#!/usr/bin/perl

print "Content-type: text/html

";
print "<HTML>
";
print "<HEAD>
";
print "<TITLE>An Examlpe og a CGI script in Perl</TITLE>
";
print "</HEAD>
";
print "<BODY BGCOLOR=
white
>
";
print "Hellow World! my dear!
";
print "</BODY>
";
print "</HTML>
";

ÀÔ´Ï´Ù.

ÀÌ·¸°Ô Çسõ°í test.htmlÀ» Ŭ¸¯Çϸé test.html ¹®¼­°¡ refresh µÇ¸é¼­

yes.cgi¸¦ ½ÇÇà½ÃÅ°°í ºê¶ó¿ìÀú¿¡´Â hellow! my dear!¶ó´Â ±ÛÀÚ°¡ ³ªÅ¸³ª¾ß Çϴµ¥

½ÇÁ¦·Î´Â À¥È£½ºÆà »ó¿¡¼­ Å×½ºÆ®ÇÏ¸é ºê¶ó¿ìÀú¿¡ "ÆäÀÌÁö¸¦ Ç¥½ÃÇÒ ¼ö ¾ø½À´Ï´Ù."¶ó°í ¸Þ¼¼Áö°¡ ¶°¿ä.

Áý¿¡¼­ offlineÀ¸·Î ½ÇÇàÇÒ¶§´Â ´ÙÀ½°ú °°ÀÌ ¶ß°í¿ä.

#!/usr/bin/perl print "Content-type: text/html

";print "<HTML>
";print "<HEAD>
";print "<TITLE>An Examlpe og a CGI script inPerl</TITLE>
";print "</HEAD>
";print "<BODY BGCOLOR=
white
>
";print "Hellow World! my dear!
";print "</BODY>
";print "</HTML>
";

ÀÌ·¸°Ô ¸ðµÎ ºÙ¾î¼­ ³ª¿É´Ï´Ù. ¹¹°¡ À߸øµÈ °ÍÀÎÁö ¾Æ¹«¸® ¿¬±¸¸¦ ÇغÁµµ ¸ð¸£°Ú³×¿ä.

¾ÆÁÖ ±âÃÊÀûÀÎ ºÎºÐ¿¡¼­ À߸øÇÑ°Í °°Àºµ¥¿ä... Á» µµ¿ÍÁÖ¼¼¿ä.

¿¡·¯Á» ¹Ù·Î Àâ¾ÆÁÖ¼¼¿ä
Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û [ÆÁ] iis¿¡¼­ php ¼ÂÆùý 2001-01-14 07:39:58
´ÙÀ½°Ô½Ã±Û Áö±Ý ¸¸µé°í ÀÖ´Â ÁßÀä-¼³Ä¡¸»ÀÌÁÒ.. 2001-01-14 12:05:49