Re: Esql/C Problem.....HELP~~~
Posted in 1999
Peary You probably need to set the LD_LIBRARY_PATH in your webserver (I think srm.conf in Apache). Also if you are doing some sql calls you also need the other Informix variables, such as INFORMIXDIR, PATH(=$INFORMIXDIR/bin:$PATH), INFORMIXSERVER and ONCONFIG. HTH Sujit peary <peary@ms1.url.com.tw> on 05/19/99 02:55:40 AM Please respond to peary <peary@ms1.url.com.tw> To: informix-list@iiug.org cc: (bcc: Sujit Pal) Subject: Esql/C Problem.....HELP~~~ Hi, all, I use Informix SE on LINUX, and I found a problem. I write an easy EC program(nothing about sql) and compile it to execution file. It can run well under linux command, but if i run it on web browser, it don't work(never have output). But if I rename it to "tt.c" , and compile it to an execution file. It can run well on both linux command and the web browser. I don't know why? It is the same C program and nothing about SQL, just compiled by different C compiler. Why one can execute on web browser, and the other can't? Anyone knows? Does any parameter I need to set on linux for web? Thanks... Peary Here is my program, "tt.ec" #include <stdio.h> #include <stdlib.h> #include <string.h> void main(int argc,char *argv[]) { printf("Content-type:text/html%c%c",10,10); printf("This tests the output of C on WEB...\\n"); /*printf("%s",argv[1]);*/ return; }