Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: CGI/Oracle/C
Do not see any reference to Pro*C.
The .pc file needs to be pre-processed by Oracle Pro*C.
This will rework sql statements, and in the end generate a .c file.
This then can be compiled, using a c-compiler.
Just renaming .c to .pc will not do the job!
BTW, Did you look into the pl/sql modules for Apache? There are several of them around
-- Frank Liming Xu <lmxu_at_Glue.umd.edu> schreef in berichtnieuws 39DFDE1D.718BC660_at_Glue.umd.edu...Received on Wed Oct 11 2000 - 06:16:21 CDT
> Hi, i'm a newbie and have a quick question.. (using Apache server)
> I'm programing cgi in C, and for later purpose, I'm using oralce
> database....
>
> so the problem here is, I have a simple "hello World" C program in my
> cgi-bin with .c extension,
> and if I compile this and get an executable, then from the web, when I
> access this cgi-bin/helloworld, it works
> perefectly...but......since i will deal with oracle, so I rename the
> file helloworld.c to helloworld.pc......then problem come.....
>
> so now, with .pc, it still compiles and generate helloworld executable,
> but when I access the executable from the web,
> it tells me "premature, end of script header"
>
> what's wrong? it has to be an oracle thing....
>
> thanks
>
> newbie
>
![]() |
![]() |