RE: cgi

new topic     » goto parent     » topic index » view thread      » older message » newer message

1 represent stdout, which is *usually* the screen, but in the case of a 
web server running a cgi stdout points to the webserver, which in turn 
(depending on what you've sent it) sends that data on to the client 
broswer.  In my case "Location: /resource.xxx\n\n", tells the webserver 
to send resource.xxx (ispalying.gif) to the client, rather then html 
code, which would be "Content-Type: text/html\n\n".

I got it working, it was the webserver (www.analogx.com, SimpleServer 
WWW) that was causing the trouble.  I switched to Xitami, and have it 
working correctly now.  I was trying to use the AnalogX server beause 
it's small and super easy to set up (follows my program methodology: 
KISS - Keep It Simple, Stupid!).  But Xitami is a really good open 
source server, that came highly recommended (by Euphoria members, no 
less :) ), so Xitami it is.  And Xitami isn't hard to setup and use, 
it's just *more* complicated than AnalogX.

Thanks for the suggestion, anyway.
-=Cassidy=-

Ryan Johnson wrote:
> I don't understand cgi, but I was thinking about trying it one of these 
> days...
> Anyway, although I don't know cgi, I do know that from my experience, 
> when you run a euphoria program (in windows), it does not create a 
> prompt window unless it needs to.
> Correct me if I'm wrong, but when you use "puts(1, "text")", doesn't "1" 
> 
> represent the screen? And when you put to the screen, Euphoria creates a 
> 
> console window so it can "puts" to it. If you want to put to an open 
> file, you would use whatever number represents that open file, which 
> should be a number other than 1. Are you putting to a file? Maybe you 
> should use the number 2.
> Am I helping? Or should I just be quiet now? :)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu