On Aug 25, 1:53 pm, Cousin Stanley <[EMAIL PROTECTED]> wrote:
> >
>
> > def generate_output():
> > print ''
>
> > generate_output()
>
> Raja
>
> You might try adding a Content-type header followed by
> a blank line to your generate_output() function
>
> de
>
>
> def generate_output():
> print ''
>
> generate_output()
Raja
You might try adding a Content-type header followed by
a blank line to your generate_output() function
def generate_output() :
print 'Content-type: text/html'
print
Raja <[EMAIL PROTECTED]> writes:
> The code is working fine on the command line but when executing it
> on the browser i get the famouse "Premature end of script headers"
> error.
Look at the server's error log to see what the real error message is.
You are probably missing an environment variabl
Hi,
I am trying to write a cgi program which would be executed on
browser with Apache server installed.
The program would make a connection to a database using cx_Oracle
module and display results on page.
The code is working fine on the command line but when executing it on
the browser i get