[REBOL] Re: REBOL + PHP, or ...?
From: chrismorency:videotron:ca at: 24-Nov-2001 20:43
Hi,
> Ah, thanks! So all my pages are supposed to come to /cgi-bin/ dir,
> right? Few comments, one question though :-)
Actually no, they can be anywhere in the hierarchy of your site, however
since they have a specific extension you told Apache about, they will be
processed by rebol.exe. Yeah, you put erebol.r in the cgi-bin directory, but
I'm not even sure that this is obligatory...
> 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?\
Actually, you can even save the information to txt files and reuse them
later with a print read %file within your script.
> 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 ....
Not sure about this, wild guess here but what about this snippet :
<html>
<head></head>
<body>
<... static html code ...>
<% do something %>
<... static html code ...>
<% do other things %>
...
> 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 ...
Thank Marteen, and I'm sure he would be the one to answer...
Best,
Chris