Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: CGI/Oracle/C

Re: CGI/Oracle/C

From: Frank <frankbo_at_interaccess.nl>
Date: Wed, 11 Oct 2000 13:16:21 +0200
Message-ID: <8s1i69$ob9$1@porthos.nl.uu.net>

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...

> 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
>
Received on Wed Oct 11 2000 - 06:16:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US