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

´Ð³×ÀÓ

npnglife

À̸ÞÀÏ

yeountae02@naver.com

Á¦¸ñ

500 Internal Server Error ¹ß»ýÇÕ´Ï´Ù...
³»¿ë

¾È³çÇϼ¼¿ä.

cgi´Â ÀüÇô ¾ÈÇغôµ¥..

ȸ»ç¿¡¼­ À¯Áöº¸¼ö¸¦ ÇÏ´øÁß Á» ¿À·¡Àü¿¡ ¸¸µé¾îÁø cgi ȨÆäÀÌÁö¿¡ ¹®Á¦°¡ ¹ß»ýÇß½À´Ï´Ù.

±×·¡¼­ ºÎ·ªºÎ·ª °¡ÀÔÇÏ°í Áú¹®µå¸®·Á°í ÇÕ´Ï´Ù.

 

±¸Ã¼ÀûÀÎ Áõ»óÀ» ¸»¾¸µå¸®ÀÚ¸é..

open.cgi ¶ó´Â ÆäÀÌÁö¿¡

<Form action=db_put6.cgi method=post>

<Áß·«>

<input type=submit value="ÅÛÇø´À» ÀúÀåÇÕ´Ï´Ù!" class="bodytext" style="height:19px;background:;border:1 solid #787878;cursor: hand"></td></tr></table>
</FORM>

ÀÌ·¸½À´Ï´Ù.

submit ¹öÆ°À» ´©¸£¸é db_put6.cgi°¡ ¿­¸®´Â°¡ º¾´Ï´Ù.

±×·±µ¥ °á°ú´Â 500 Internal Server Error °¡ ¹ß»ýÇϴ±º¿ä.

¾Æ·¡¿¡ db_put6.cgiÀÇ ¼Ò½º¸¦ °ø°³ÇÕ´Ï´Ù.

---------------------------------------------------------------------

#!/usr/bin/perl

do "cgi-lib.pl";

&ReadParse;
$ADMIN_PASSWORD=$in{'ADMIN_PASSWORD'};

$DB=$in{'DB'};

        dbmopen(%item,"./data/$DB/.config",0777);
 
 foreach $key (keys %in) {
if (($key ne "HEAD") && ($key ne "TAIL")) { $item{"$key"} = $in{"$key"}; }
  }

        dbmclose(%item);

 open(FILE,">./data/$DB/.open");
 print FILE $in{'OPEN'};
 close(FILE);


 print "Location: open.cgi?DB=config&PASSWORD=$ADMIN_PASSWORD \n\n";

-----------------------------------------------------------------------------

±×·³ ´äº¯ ±â´Ù¸®°Ú½À´Ï´Ù.

 

ps. cgi´Â mysql À̳ª oracle °°Àº db°¡ µû·Î ÀÖ´Â°Ô ¾Æ´Ñ°¡ º¾´Ï´Ù. ±×³É ÇϳªÀÇ ÆÄÀÏ·Î µÇ¾î ÀÖ´õ¶ó±¸¿ä.¤¾¤¾

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
HappyCGI 2007-10-09 01:33:02
´ä±Û

ÆÞ ÇÁ·Î±×·¥Àº ¼Ò½º·Î ¿¡·¯¸¦ ÃßÃøÇϱâ ÈûÀÌ µì´Ï´Ù.
¹Ýµå½Ã ½©¿¡¼­ ½ÇÇàÇغ¸¼¼¿ä.
ÅÚ³Ý>perl ÇØ´çÆÄÀÏ.cgi[¿£ÅÍ]
¾Æ·¡ ¸µÅ©µµ Âü°í¸¦ Çϼ¼¿ä.
http://www.happycgi.com/moniwiki/wiki.php/CGI%B0%A1%BF%A1%B7%AF%B3%AF%B6%A7

jonathan 2007-12-13 12:12:15
´ä±Û

perl db_put6.cgi ÇÏ½Ã¸é ¾îµð°¡ ¿¡·¯ÀÎÁö ³ª¿É´Ï´Ù

ÀÌÀü°Ô½Ã±Û C++ ´äº¯ ¿ä¸Á 2007-09-26 20:42:29
´ÙÀ½°Ô½Ã±Û confirm È®ÀÎÈÄ °á°ú°ªÀ».. 2007-10-05 16:38:50