Re: Xitami.EuCGI
- Posted by Daniel Berstein <daber at PAIR.COM> Mar 03, 1999
- 1562 views
At 02:15 AM 03-03-1999 , you wrote: >I have a problem with using euphoria, with the xitami web server...It >seems the problem is with the euphoria program, not the server... >anyways, whenever I try to use the CGI program, I get a euphoria, error, >bad file number (-1). It appears that the environment variables aren't >being picked up by the eu program. I've set up the xitami server >properly, to make use of such variables (CGI_STDOUT,CGI_STDIN, etc. >etc.)... > >So, I ask, Daniel, in particular, how have you got everything set up? > >Thank you, >Greg Hi Greg. Yep... I got the same stuff. The problem is that Xitami doesn't send the appropiate path for the CGI_STDIN and CGI_STDOUT files. I had to correct them personally by doing : cgi_stdout = getenv("CGI_STDOUT") cgi_stdout = "..\\" & cgi_stdout The problem is that (if your are using the default Xitami configuration) these files paths are relative to the Xitami main directory (c:\xitami), not from the cgi-bin directory. BTW I'm working on other EuCGIs now: a guestbook system. In fact the "add guest" CGI is ready. Go to http://www.dabersoft.xitami.net/ I added a nice "menu" of available resources, follow the EuCGI link. I hope to have running on some more minutes the view guests EuCGI. Come and visit me so I know it works! Regards, Daniel Berstein [daber at pair.com]