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

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

Thanx... I knew it was a simple thing... i alway over look thee simple
ones.... I know bout the sending Content-type: text/html first.. .been
reading up on all that at the links you sent.... Now i get the error bad
file umber(-1)... I need to set CGI_STDOUT from the html code(i think...
or do i set it in autobat when CGI_STDOUT gets created)
the working html oyu made will clear up all this for me.... =) I have
never understood html very well(the whole form thing got me.. to many
way to combine it with other things... the code looks funny and i try to
use it like E... =)

thanx for responding

GV



>From: Daniel Berstein <daber at PAIR.COM>
>Reply-To: Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
>To: EUPHORIA at LISTSERV.MUOHIO.EDU
>Subject: Re: Help... Im lost(again) (was Re: More about Euphoria CGIs
(asuccesful story!))
>Date: Tue, 16 Mar 1999 14:31:43 -0400
>
>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 ]
>

Get Your Private, Free Email at http://www.hotmail.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu