Re: Help... Im lost(again) (was Re: More about Euphoria CGIs (a

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

At 01:02 PM 16-03-1999 , you wrote:
>Hiya all,
>
>I must be as think as a brick... I have been messing with this since
>this first was posted and had this lower example work... Then i started
>messing with code and messed up.. So i restored the code to what it had
>been... Then it starts to give theerr  hex number not formed correctly
>.. and now i cant get it to work... and i realy need it to... Im tryign
>to put it on a web site for my clan(age of empires: rise to rome) to
>report the statis of our games.... TIA
>
>Grape Vine

Hi Grape.

Your are inserting the #! thingy on your exw file! That's wrong. Here are
step-by-step instructions to make it work on Xitami:

Create on the Xitami cgi-bin directory a text file (use notepad or ed or
whatever you like best) that says:
#! c:\euporia\bin\exw.exe c:\eucgi\mycgi

Remember that the above text must be on the very first line of the
document, and must be followed by at least one blank line.

c:\euphoria\... is the complete path to exw.exe. c:\eucgi\mycgi is the
parameter passed to exw.exe (Euphoria will execute the file
c:\eucgi\mycgi.exw).

On your EuCGI app (mycgi.exw in this example), read the enviormental
variable CGI_STDOUT. It holds the name of the file to where you should
output the HTML code. If you examine these name you'll notice that it
doesn't have a well formed path, so just prepend 'c:\\xitami\\temp\\' or
'..\\temp\\' to it. Open that file for 'a'ppend, open(out_file, "a").

Before sending HTML text, first you must output:
Content-type: text/html

Followed by at least one blank line, puts(fout, "Content-type:
text/html\n\n").

That's all!


Regards,
          Daniel  Berstein
         [ daber at pair.com ]

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

Search



Quick Links

User menu

Not signed in.

Misc Menu