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

´Ð³×ÀÓ

HappyCGI

À̸ÞÀÏ

webmaster@happycgi.com

Á¦¸ñ

[´äº¯] ÁÖ¼ÒâÀÇ º¯¼ö
³»¿ë
[parkhyunt´Ô ¿øº»±Û]
php¿¡¼­´Â ÁÖ¼Òâ¿¡ a.php?a=10&b=20
ÀÌ·¸°Ô ÁÖ¸é º¯¼ö°ªÀ» ÁÙ ¼ö Àִµ¥

perl¿¡¼­ ¾²ÀÏ º¯¼ö°ªµµ
ÁÖ¼ÒâÀ» ÅëÇؼ­ ÁÙ ¼ö ÀÖÀ»±î¿ä???

°¡´ÉÇÏ´Ù¸é Á¶¾ð ºÎŹµå¸³´Ï´Ù ^^


¾È³çÇϼ¼¿ä. ÇØÇÇCGI ÀÔ´Ï´Ù.

¹°·Ð °¡´ÉÇÏÁö¿ä ^^ . php°¡ ¾ö¸¶ ¾ð¾î°¡ perl À̶ø´Ï´Ù. phpÀÇ ÇҸžð¾î´Â c°¡ µÇ°Ú±º¿ä. ^^;;;

¾Æ·¡´Â ¿¹Á¦ÄÚµåÀÔ´Ï´Ù.


[ÇÁ·Î±×·¥ÄÚµå]

#!/usr/bin/perl
unless ($ENV{'CONTENT_LENGTH'} eq "") {
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
}


@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
   ($jname, $value) = split(/=/, $pair);
   $value =~ tr/+/ /;
   $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
   $$jname = $value;
 }

$work = $ENV{"QUERY_STRING"};
@pairs_end = split(/&/, $work);
foreach $pair (@pairs_end) {
   ($kname, $value) = split(/=/, $pair);
   $value =~ tr/+/ /;
   $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
   $END{$kname} = $value;
 }

print "content-type:text/html\n\n";
print "$test ´Â post°ª <br> $END{'test'} ´Â get°ª";






ÁÖ¼Òâ¿¡ º¸À̴°ªÀº get°ªÀÔ´Ï´Ù. µû¶ó¼­ $END °ªÀ¸·Î »ç¿ëÇÏ½Ã¸é µË´Ï´Ù.
ÁÁÀº ÇÏ·çµÇ¼¼¿ä. ^^

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û ÁÖ¼ÒâÀÇ º¯¼ö 2008-01-06 16:49:29
´ÙÀ½°Ô½Ã±Û cgi°ü·ÃÇؼ­ ³ª¸§ °í³­µµ Áú¹®ÀÔ´Ï´Ù. 2008-01-12 00:37:41