Re: Python cx_Oracle and Apache

2008-08-25 Thread Hrvoje Niksic
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 variable such

Re: Python cx_Oracle and Apache

2008-08-25 Thread Cousin Stanley
def generate_output(): print 'htmlbody/body/html' 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'

Re: Python cx_Oracle and Apache

2008-08-25 Thread Raja
On Aug 25, 1:53 pm, Cousin Stanley [EMAIL PROTECTED] wrote: def generate_output():         print 'htmlbody/body/html' generate_output()   Raja     You might try adding a  Content-type  header followed by     a  blank line  to your  generate_output()  function    

Python cx_Oracle and Apache

2008-08-24 Thread Raja
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