[Gambas-user] CGI - Hello World
Erwin Pogz
erwinpogz at ...43...
Wed Nov 22 07:46:56 CET 2006
Ok, i made some changes on my code but still doesnt work.
I did have a startup class.
Heres my Code:
' Gambas module file
PUBLIC SUB Main()
PRINT "Content-type: text/html\n\n"
PRINT "Hello World!"
END
Still doesnt work so i changed to something like this
' Gambas module file
PUBLIC SUB Main()
Response.Begin
PRINT "Hello World"
Response.End
END
Still have no luck.
.. What i did is compiling my code and make an executable file as ff.gambas
if I run the ff.gambas using the console, it works fine. But when executed it as CGI using Apache. An error message is showing up:
premature end of script headers: ff.gambas
The rest of my perl scrips works fine. Should I need some tweak
in my httpd configuration?
I just upgraded my Gambas2 to 1.9.46a
Best regards,
Erwin
---------------------------------
Sponsored Link
$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity - Click now for info
More information about the User
mailing list