Re: EUPHORIA CGI + Apache
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Jun 26, 2004
- 494 views
>From: Dave Probert <guest at RapidEuphoria.com> >Reply-To: EUforum at topica.com >To: EUforum at topica.com >Subject: Re: EUPHORIA CGI + Apache >Date: Fri, 25 Jun 2004 23:45:25 -0700 > >posted by: Dave Probert <zingo at purpletiger.com> > >A really useful article. > >Can you give a simple "Hello World" example of a Euphoria CGI script? > >I've tried: >}}} <eucode> >#!C:\euphoria\bin\exw.exe >puts(1,"Hello World") ></eucode> {{{ > You need to insert the correct CGI headers. Those specify if you're outputting HTML code, plain text, pictures, and can do other stuff, like a redirect. Try this for an example:
#!C:/euphoria/bin/exw.exe -- i believe you need / and not \ puts(1, "ContentType: text/html\n\n") puts(1, "< html > < body > Hello World! < /body > < /html >")
I put spaces between the < and the tags just in case they get removed on the list. Hopefully, you'd still be able to see the tags. ~[ WingZone ]~ http://wingzone.tripod.com/