[REBOL] Re: REBOL + PHP, or ...?
From: petr:krenzelok:trz:cz at: 25-Nov-2001 1:26
Christian Morency wrote:
>>- ability to let my friend generate website in his favorite html-editor,
>>and inserting script execution results in various places, e.g. tables.
>Take a look at Maarten Koopmans eRebol script in the CGI folder of Rebol
>Library, if I understand what you need is the following :
>Availability to use standard HTML, but preprocessed by a server (a la ASP or
>PHP), this is what you need... I actually use this on some of Palmtime.com's
>website to generate the AvantGo channel of the mailing list ! It's not
>difficult to setup, I've made some minor modification myself to it... and it
>runs great with Apache !
Ah, thanks! So all my pages are supposed to come to /cgi-bin/ dir,
right? Few comments, one question though :-)
1) I would strongly suggest to NOT prin(t) parts of script to output.
That slow downs things way too much to be viable. Have you ever tried to
store your text to buffer first, and print it at once at the end?
2) exec-rule: [ copy pre to "<%" thru "<%" copy code thru "%>" page-end:
(execs: true prin pre error? try blok)]
the beginning of above parse rule could be modified to copy pre thru
or I am missing something here ....
3) what is following code doing exactly? What does 'bind do here and why
not to user e.g. 'reduce?
blok: [ do code ]
bind blok 'do
Anyway - I got the idea, thanks ...