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

´Ð³×ÀÓ

Anonymous

À̸ÞÀÏ

Á¦¸ñ

cgi·Î µÈÆÄÀÏÀÌ ½ÇÇàÀÌ ¾ÊµÅ¿ä...?
³»¿ë
ºÎŹµå¸³´Ï´Ù....

¸®´ª½º¼­¹ö¸¦ À¥¼­¹ö·Î »ç¿ëÇÏ´Ù°¡ ¾ó¸¶Àü¿¡ Áö¿ì°í win2000 server
·Î ¼³Ä¡Çß½À´Ï´Ù..

IIS¸¦ ±¸¼ºÇÏ°í ¸®´ª½º¿¡ ÀÖ´ø À¥ÆäÀÌÁö¸¦ °æ·Î¿¡ ¸ÂÃç win2000¿¡ Ä«ÇÇÇÏ¿© ȨÆäÀÌÁö´Â Á¤»óÀûÀ¸·Î ¶å´Ï´Ù...

±×µ§ ȨÆäÀÌÁö Áß°£Âë¿¡ loginid ¿Í passwd ¸¦ ÀÔ·ÂÇϴºκÐÀÌ Àִµ¥
id¿Í passwd¸¦
üũÇÏ´Â ºÎºÐÀÌ logincheck.c ·Î ÀÛ¼ºµÇ¾î ¸®´ª½º¿¡¼­ cgi ·Î ÄÄÆÄÀÏ
µÇ¾îÀÖ´Â°Í °°Àºµ¥(Á¦»ý°¢ÀÓ)
logincheck.c  ³»¿ë

#include #include "util.h"  main() {  FILE *fp;  char str, old_str;  char buf[1000];  int err = 1;  long i = 1;  int count;  entry entries[2000];    printf("Content-type: text/html\r\n\r\n");  post_method(entries, &count);  strcpy(buf, "

¿¡·¯
");    if (!(fp = fopen("/home/httpd/icons/korean/samson.html","r"))) {      printf("\n\nERROR !!!");  } else {  if (!strcmp(entries[0].val, "") || strcmp(entries[0].val,"samson") != 0){      strcat(buf, "Login ID °¡ À߸øµÇ¾ú½À´Ï´Ù.

\n");      err = 0;  }    if (!strcmp(entries[1].val, "") || strcmp(entries[1].val,"perlite") != 0){      strcat(buf, "ºñ¹Ð¹øÈ£°¡ À߸øµÇ¾ú½À´Ï´Ù..

\n");      err = 0;  }  if ( err ) {    old_str = (char)fgetc(fp) ;    for(str = (char)fgetc(fp); old_str != '~' || str != '~'; )      {          printf("%c",old_str) ;          old_str = str;          str = fgetc(fp);        }    }  else { printf("\n\n%s",buf);  }    fclose(fp); } }

À̺¯È¯µÈ  logincheck.cgi °¡ win2000¿¡¼­ ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù...
activeperl µµ ¼³Ä¡ÇÏ¿´°í °æ·Îµµ ¸Â´Â°Í °°Àºµ¥
loginid,passwd ¸¦ ÀÔ·ÂÇϸé ÀÌÆäÀÌÁö¸¦ ¿­¼ö¾ø´Ù´Â È­¸éÀÌ ¶å´Ï´Ù

Á¦°¡ À¥ÇÁ·Î±×·¡¸Ó°¡ ¾Æ´Ï¶ó¼­ ¼³¸íÀÌ ºÎÁ·Çß´õ¶óµµ ÀÌÇعٶø´Ï´Ù..

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û °øµ¿±¸¸Å cgi¼Ò½º ã½À´Ï´Ù. 2001-06-23 09:47:43
´ÙÀ½°Ô½Ã±Û win2000ÀÔ´Ï´Ù 2001-06-24 04:19:37