1. Re: CGI in Euphoria

At 10:05 AM 6/3/98 EDT, you wrote:
>
>Basically what I want to do is be able to use a language (such as Perl or
>Euphoria), and use it for CGI scripting *locally*. Like be looking at a
>local page, then filling out a form & running a script, and having the
>script return its results to the browser, not the console... just like
>what would happen if you were surfing online.
>
>Can it be done?
>
>----------------------------------
>Irv wrote:
>
><code snipped>
>
>It didn't work. #1, it gave me an error that said "Line 18: this is
>supposed to be a sequence".

Yes. That line tries to write a file named whatever name
is supplied in the environment variable OUTPUT_FILE. I
suspect your server is not setting that variable correctly.

I suggest you add a line prior to this to print the
contents on your screen:
puts(1,OUTPUT_FILE)
or even ? OUTPUT_FILE (maybe better)
and abort(0) if you want. That will show where the problem is.

#2, it didn't send the output to my browser,
>even after I changed the 'fn' to '1'.

It never made it that far.

>BTW, I was doing this locally without a webserver or anything running.
>What should I be doing for this to work?

Running a webserver would be a good start ;)

Browsers don't just go looking for things to load. You gotta
send them something. Even then, they are pretty picky about
what they'll accept.


Irv

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu