For the introduction of Rebol language, please refer to the "Development Master" on the serial load. There is all in the 2004 "programmer". Official website: http://www.rebol.commailing list: http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-month-index.R?month=200412faq: http://www. Rebol.com/faq.htmlcodebook: http://www.rebol.net/cookbook/how-to: http://www.rebol.com/how-to.html There are more resources you have in searching for yourself.
Not much nonsense. The day before yesterday, I started to learn Rebol, I spent a year or two, and I finished the entire serial article. I saw this in the How-to-list on the website:
Quick and easy cgi - a beginner's tutorial and guidehttp://www.rebol.com/docs/cgi1.html
The title is very easy. It is actually not that EASY is mainly the article only on the general perspective, and does not involve the operation on the specific platform. And I am using Windows 2000 IIS, never written CGI, is more difficult.
Checked a bunch of information, looked at many old posts in mailing-list, finally tried to success my first CGI program :)
The procedure is as follows:
Rebol [Title: "Server Time"] Print {content-type: text / html ^ /} print [
] print ["DATE / TIME IS:" now] Print [ body> html >]Save to now.cgi put it in the CGI directory. This directory I am a new D: / web / cgi-bin, then confirm if the rebol031.exe (depending on the different versions of Rebol, the name of this executable may be different), and the CGI file, the extreme directory is set. Readable, writable permissions.
Next is the setting of IIS. Right-click on the CGI-BIN directory, "App Program Name" is not "created" later. Then "Configure" - "Apply Mapping Add" .cgi "extension, the executable command is set to:
D: /rebol/core/rebol031.exe -cs% s
The above Rebol directory changes yourself to the directory of the Rebol Core.
That is, this command settings make me harm. Started according to the article, death is wrong. Later, I saw a lot of posts to know that I have to add
-cs% s parameter This% s indicates the file name following the command line, that is, the source we want to explain.
-c is telling Rebol to run in CGI mode; -S is roughly a security meaning, the specific meaning is not clear, I have not detapped. I can still run it normally, it is changed to this:
D: /rebol/core/rebol031.exe -c% s
"All Actions" can be selected.
After matching, open IE, browse: http://localhost/cgi-bin/now.cgi sees the following simple output:
Date / Time IS: 2-JAN-2005/4: 47: 38 8: 00
What to say here is that if the permissions are configured, or the application map is not configured, you may be prompted:
There is no correct http-headers, or similar additional information, or if there is no response for a long time, then timeout. Rebol is a cross-platform, which is very convenient to use, interpretable scripting language. Although it is interpreted, it is unbelievable, and its image processing ability is surprising.
I am purely in order to learn this two days, maybe I can use it in the future as my study will be shared on some notes. Rebol's editor recommended to use Editplus, here I found a syntax highlighting configure file uploaded by others: http://www.editplus.com/files/rebol.zip
There are many advocates of Editplus, so supporting multiple grammar highlights, automatic completion. Is a very good editor. There are some grammar files and auto completion files in other languages:
http://www.editplus.com/oThers.html