1. EU-CGI

If I have this:

-- mycgi.exu
puts(1,"\nHello!\n")
-- end mycgi.exu

In my CGI-BIN folder, as well as a copy of exu.exe (or whatever it's
called), then would browsing to www.mysite.com/cgi-bin/mycgi.exu cause
it to display "Hello!" in my browser window?

If not, what am I missing?

Thanks,
ck

new topic     » topic index » view message » categorize

2. Re: EU-CGI

>From: "C. K. Lester" <cklester at yahoo.com>
>Subject: EU-CGI
>
>
>If I have this:
>
>-- mycgi.exu
>puts(1,"\nHello!\n")
>-- end mycgi.exu
>
>In my CGI-BIN folder, as well as a copy of exu.exe (or whatever it's
>called), then would browsing to www.mysite.com/cgi-bin/mycgi.exu cause
>it to display "Hello!" in my browser window?
>
>If not, what am I missing?
>

Yes, this will work, almost...
First of all, you have to specify the interpreter with a shebang line, ie: 
#!./exu This *must* be on the first line. Also, if you want to start 
outputting HTML, then you will have to include the HTTP header: 
"Content-Type: text/html\n\n" A more complete program would be:

#!./exu
--mycgi.exu
puts(1, "Content-Type: text/html\n\n")
puts(1, "<html><head><title>Euphoria CGI</title></head>\n")
--end mycgi.exw

which would display an HTML page containing "Hello!!" and the title 
"Euphoria CGI".

>Thanks,
>ck

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.  
http://join.msn.com/?page=features/junkmail

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu