>> Delete No. 14949 article
No. 콘솔에서는 되는데 웹에서는 먹통

등록 2000-12-19 21:50:00 By localhost     조회 1
이름 twobyte    

		안녕하세요....
pro*C 로 cgi 를 만들려구 하는데요....
아래와 같이 하여 컴파일했는데...
콘솔에서 실행을 시키면....printf문이 동작을 해서 화면에 뿌려주는데..
이걸 웹에서 실행을 시키면 아무런 메세지도 보여주지않고
하얀 백지화면만 보여줍니다...
왜 그런지 좀 가르쳐 주세요...
무지무지 급함다...
쩝...
이제 더이상 버틸 시간이... 엉엉엉
  #include <stdio.h>
#include <string.h>
#include <time.h>
#include "ext.h"
 cgiMain(int argc, char *argv<>)
{
int i;
char *fname;
char *entname;
 fname = (char *)malloc(sizeof(char)*256);
 printf("Content-type : text/html");
putenv("ORACLE_HOME=/home1/oraweb");
putenv("ORACLE_SID=ORA805");
putenv("NLS_LANG=American_America.ko16ksc5601");
putenv
("LD_LIBRARY_PATH=/home2/case/mail_test/ns_sdk_lib:/home1/oraweb/lib:/u
sr/lib");
 printf("<html>");
printf("<head><head>");
printf("<body>");
printf("This is a test");
 for (i=1 ; i < argc; i++)
{
   printf("%s<br>",argv[i]);
}
 printf("</body>");
printf("</html>");
 free(fname);
}--서명
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved