Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

CGI problem

 [1/7] from: ZikZak::wanadoo::fr at: 11-Jan-2004 20:09


Hi, I'm a beginner with Rebol and im' trying to test the cgi of the tutorial : #!/www/cgi/rebol -c REBOL [Title: "Server Time"] print "content-type: text/html^/" print [<HTML><BODY>] print ["Date/time is:" now] print [</BODY></HTML>] but when I open the page with my browser I obtain the following message : ** Near: size: size-text self all [ para para/origin size: size + para/origin para/margin size: size + para/margin ]  Can you explain to me where is the problem ? Best regards -- ZikZak

 [2/7] from: SunandaDH:aol at: 11-Jan-2004 14:36


Hi ZikZak
> I'm a beginner with Rebol and im' trying to test the cgi of the tutorial :
[snip]
> Can you explain to me where is the problem ?
A couple of things to try: -- I don't know where that message is coming from, but it's a REBOL/View message. Try using REBOL/Core for CGI -- it's much slimmed down, and all you need. -- I always use -cs on the shebang line. That correctly (unless I've been wrong all along) sets the security level. Sunanda.<

 [3/7] from: AJMartin:orcon at: 24-Jan-2004 11:47


ZikZak wrote:
> I'm a beginner with Rebol and im' trying to test the cgi of the tutorial : > #!/www/cgi/rebol -c
<<quoted lines omitted: 11>>
>  > Can you explain to me where is the problem ?
That error looks like a Rebol/View problem. It seems like you're using Rebol/View on the web server and it hasn't had the opportunity to install itself yet. I'd suggest switching to Rebol/Core and try the script again. Alternatively, try running Rebol/View on the server and let it install self (you'll need to provide appropriate answers during the install). I hope that helps! -- Andrew J Martin ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/

 [4/7] from: ZikZak:wanadoo at: 11-Jan-2004 21:00


Le Sun, 11 Jan 2004 14:36:16 EST [SunandaDH--aol--com] a écrit : || ||Hi ZikZak ||> I'm a beginner with Rebol and im' trying to test the cgi of the |tutorial :|[snip] ||> Can you explain to me where is the problem ? || ||A couple of things to try: || ||-- I don't know where that message is coming from, but it's a |REBOL/View |message. Try using REBOL/Core for CGI -- it's much slimmed |down, and all you need.| ||-- I always use -cs on the shebang line. That correctly (unless I've |been |wrong all along) sets the security level. || ||Sunanda. ||-- ||To unsubscribe from this list, just send an email to ||[rebol-request--rebol--com] with unsubscribe as the subject. Hi, Thank you, the Core is far better for CGI, it works correctly now. Best regards -- ZikZak

 [5/7] from: jason:cunliffe:verizon at: 11-Jan-2004 14:57


> #!/www/cgi/rebol -c > REBOL [Title: "Server Time"] > print "content-type: text/html^/" > print [<HTML><BODY>] > print ["Date/time is:" now] > print [</BODY></HTML>]
Hmm.. try -cs in the first line and perhaps you need string quotes around those html tags? Use either "" or {} #!/www/cgi/rebol -cs REBOL [Title: "Server Time"] print "content-type: text/html^/" print ["<HTML><BODY>"] print ["Date/time is:" now] print [{</BODY></HTML>}] hth - Jason

 [6/7] from: g:santilli:tiscalinet:it at: 12-Jan-2004 11:47


Hi ZikZak, On Sunday, January 11, 2004, 8:09:51 PM, you wrote: Z> Can you explain to me where is the problem ? As Andrew said, you should use Core and not View. But not because View needs installation, rather that error means that View can't connect to the X server (that is, you don't get the full error message there). Core does not need an X server. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [7/7] from: carlos:lorenz:bol at: 12-Jan-2004 17:17


ZikZak, What flavor of REBOL are you using for programming CGI? REBOL/Core? Carlos Em Dom 11 Jan 2004 17:09, you wrote:

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted