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

[REBOL] newbie help Re:

From: rebol:techscribe at: 20-Sep-2000 15:09

Hi txiki, I assume that your script is running as a CGI script. I don't know what you're doing right, so here is a minimal set of rules: 1. If you're website is unix (linux) based, and/or you're running Apache as a webserver (even on MS Windows), then your first line must contain the bang character followed by the complete path to REBOL. Example: #!/usr/bin/rebol -cs REBOL [] 2. Before you print some content you must first indicate the content type followed by two newlines. Example: print [ "Content-Type: text/html^/^/" <HTML> <HEAD> <TITLE> "Example" </TITLE> </HEAD> <BODY> "Location: http://bla" </BODY> </HTML> ] This should work. Hope this helps At 01:30 PM 9/20/00 +0000, you wrote:
>Hi. I'm using Rebol on a website and am trying to print something to a page >that processes a form and sends a couple emails, with > >print "Location: http://bla" > >but all I get is a white screen with REBOL printed there. Can someone help? > >Thanks, >[txiki--hotmail--com] >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at > >Share information about yourself, create your own public profile at > >
;- Elan [ : - ) ] author of REBOL: THE OFFICIAL GUIDE REBOL Press: The Official Source for REBOL Books visit me at