[REBOL] RE: Banned/offensive stuff

2000-03-02 Thread Dru

Apologies for the recent spewing - the mailserver we use has to do that
apparently.  I am unsubbing from the list.


Regards,

Andy



[REBOL] ftp limits? Re:(5)

2000-03-02 Thread nigelb

Hi Sterling

The error I usuall get is :

 print read
ftp2://anonymous:[EMAIL PROTECTED]/aix/fixes/cad/other/catia_
oem_v4/IRIX/
** Script Error: pick expected series argument of type: series money date
time object port tuple any-function.
** Where: pick server-said 4


I tried creating a new ftp protocol as suggested re #2451 ---
net-utils/net-install FTP2 self 21,  but as above you eventually get the
same error.

I have tried this both through our firewall (socks45) and direct, on
Windows  AIX but without success. Using Leap-ftp through the firewall I get
the dir-list ok - every time, although it is slow - Leap-ftp log is -
257 "/aix/fixes/cad/other/catia_oem_v4/IRIX" is current directory.
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (194,196,0,2,54,0)
LIST
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
Transfer done: 137442 bytes in 249.207 secs (0.55 k/sec)

Hope that throws some light on the problem

Nigel






- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 01, 2000 7:16 PM
Subject: [REBOL] ftp limits? Re:(4)



 Somebody will take a look at it.  I did manage to get the same server
 response error which I think is generated if the server times out
 before REBOL does and closes the connection.  REBOL expects to hear
 something back and does not so it fails to parse the empty response.

 Thanks for the info Larry, Nigel.

 Sterling





[REBOL] CGI - Generator Re:

2000-03-02 Thread giesse

[EMAIL PROTECTED] wrote:

   http://www.rebol.cz/cgi/

Jan, this is great! I think it will be very useful here. :-)

Ciao,
/Gabriele./
o) .-^-. (--o
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
| GIESSE on IRC \ \-\_/-/ /  http://www.amyresource.it/AGI/ |
o) `-v-' (--o



[REBOL] Freenet Protocol help needed, was closing port within protocol Re:(3)

2000-03-02 Thread giesse

[EMAIL PROTECTED] wrote:

 about pass-thru, I think I don't understand enough to create
 my own version of 'copy and friends without help.

It's not that difficult, you just have to return exactly what you
want to be returned by COPY PORT for e.g.; anyway, I hope to give
it a look this week-end and perhaps give you some more hints. I
still have to figure out how to handle copy/part...

Ciao,
/Gabriele./
o) .-^-. (--o
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
| GIESSE on IRC \ \-\_/-/ /  http://www.amyresource.it/AGI/ |
o) `-v-' (--o



[REBOL] CGI - Generator Re:(2)

2000-03-02 Thread strejcek

 [EMAIL PROTECTED] wrote:
 
http://www.rebol.cz/cgi/
 
 Jan, this is great! I think it will be very useful here. :-)

I hope so. I'm still waiting for first real use...
(The main power can be seen on large forms, but it can be 
quite handy also for small forms, as an example demonstrate.)

Regards,
Jan



[REBOL] Take the Vote! Re:

2000-03-02 Thread kracik

I can't even see the page, the browser just times out.

[EMAIL PROTECTED] wrote:
 
 I received only 9 Project Submissions for the Rebol Collaboration project.
 Today is the first day of voting.  Check it out at Paul's Rebol Page -
 http://p1-110.charter-stl.com/rebolsearch
 
 Yes - the Voting Form is powered by Rebol.
 
 Paul Tretter
 Paul's Rebol Page

-- 
Michal Kracik



[REBOL] URL-encoding Re:

2000-03-02 Thread kracik

Hi,

I'm now reading some 450 old list messages and found this topic.

Be warned that to-url is just a shortcut for make url!, and does not
work as expected (it does not encode strings into usable URLs).

You should indeed write a working translator yourself.

It does not encode % and character codes higher than 127. This example
includes such character and will probably be damaged by email transfer:

 to-url "%"
== %

[EMAIL PROTECTED] wrote:
 
 Hello folks,
 
 I'm currently rewriting a simple Wiki-like system I wrote in Python a
 month ago in REBOL.
 
 To easily transfer the existing content to the new system, I need to
 know ...
 
 Is there any way to convert a string to an URL-encoded form in REBOL
 yet?
 A la "Chris L" to "Chris%20L"?
 Or do I have to write a translator for special characters myself?
 
 Thank you very much for any answers.
 
 For the records, I have to say that REBOL is definitely blessed with
 elegance as hardly ever seen before (especially in the field of computer
 languages). There are a few random crashes (bad thing about them - I'm
 often unable to reproduce them), but otherwise I'm totally fascinated!
 
 Best regards,
 -- Chris
 _
 c h r i s langreiter - - - unterlangkampfen 3 2 7
 f o r m  is function -- autriche 6322 langkampfen
 0 0 4 3 / (0) 5 3 3 2 / 8 7 6 0 7 c a l l - n o w
 w   w   w   .  l a n g r e i t e r  .   c   o   m
 
 There are three kinds of lies:
 lies, damn lies, and statistics.
 --Benjamin Disraeli

-- 
S pozdravem
Michal Kracik



[REBOL] Simple unit test framework script

2000-03-02 Thread stan_silver

Here is a script (%unittest.r) that can be used to create
simple unit tests.  It is included with its own test script
(%unittest-test.r).

Stan Silver

REBOL [
Title: {Unit Test}
File: %unittest.r
Date: 2-Mar-2000
Author: {Stan Silver}
Purpose: {Simple unit test framework}
Notes: {
unit-test takes a single block as an argument, with
alternating desired values and expressions.  If all
expressions evaluate to the desired values, true is returned;
else false.

The /errors refinement causes a list all mismatched
[desired actual] pairs to be returned instead of true or false.

The /show refinement causes all [desired actual] pairs to be
printed.

One possible convention is to have a unit test script named
%xxx-test.r for each script %xxx.r.
}
Examples: {
unit-test [
1 first [1 2 3]
3 last [1 2 3]
]
unit-test/errors [
1
first [1 2 3]

0
last [1 2 3]
]
unit-test/show [
1
first [1 2 3]

0
last [1 2 3]
]
}
]

unit-test: func [
cases-block [block!]
/errors
/show
/local result error-block cases actual desired
][
result: true
error-block: copy []
cases: reduce cases-block
forskip cases 2 [
desired: first cases
actual: second cases
if not equal? desired actual [
append/only error-block reduce [desired actual]
result: false
]
]
if show [
cases: head cases
forskip cases 2 [
print remold [first cases second cases]
]
print ""
]
return either errors [
error-block
][
result
]
]

REBOL [
Title: "Unit Test Test"
File: %unittest-test.r
Date: 2-Mar-2000
Purpose: {Unit test of unit test}
]

do %unittest.r

print unit-test/show [
true
unit-test [1 1 2 2 3 1 + 2]

true
unit-test [
   1 first [1 2 3 4 5]
   5 last [1 2 3 4 5]
]

true
do [
f: func [x][x * x]
unit-test [
1 f 1
4 f 2
9 f 3
]
]

false
unit-test [1 1 2 2 3 0]

false
unit-test [
1 first [1 2 3 4 5]
1 last [1 2 3 4 5]
]

[[1 2] [1 5]]
unit-test/errors [
1 first [1 2 3 4 5]
1 second [1 2 3 4 5]
1 last [1 2 3 4 5]
]

[]
unit-test/errors [
1 first [1 2 3 4 5]
2 second [1 2 3 4 5]
5 last [1 2 3 4 5]
]
]

break
__
Get Your Private, Free Email at http://www.hotmail.com



[REBOL] [REBOL]How to remove email headers Re:

2000-03-02 Thread icimjs

Hi tim:

message-with-headers: none
message-without-headers: none

forall inbox [
 message-with-headers: import-email first inbox
 message-without-headers: message-with-headers/content
]

or:

forall inbox [
 message-without-headers: get in import-email first inbox 'content
]


Note that message-without-headers will point at a different message body at
each iteration and will not preserve the last message. If you want to save
the message you will have to insert the messages one by one into a block.

messages: []

forall inbox [
 append messages get in import-email first inbox 'content
]

Also note that when a message is a reply to a previous message, the message
body may quote a message it is responding to and include that previous
message's headers in its own body. In this case you will end up with the
complete body of the message you received, including possibly quoted
headers of previous messages it responds to, provided they are included in
its body.



;- Elan  [: - )]



[REBOL] [REBOL]How to remove email headers Re:

2000-03-02 Thread Petr . Krenzelok

Hi :-)

try looking into import-email function, e.g. source import-email. But
you don't necessarily have to, as it's usage is very simple:

msg: import-email first inbox

print [ msg/from tab msg/subject tab msg/date]
print msg/content

or try looking into it by typing:

print mold msg

HopeThisHelps,

-pekr-

[EMAIL PROTECTED] wrote:

 The following code will check for email:
 How may I read the body of the email message
 into another variable, without the header?
 Thanks :) (code below)
 ;;
   either empty? inbox
   [
 print "No messages in inbox"
   ]
   [
 forall inbox
[
 print first inbox
 ;here I would like to write the
  ;body of the message (without the headers)
  ;to another variable
]
   ]
   close inbox
 ;;thank you all
 ;;tim



[REBOL] REBOL /View Release

2000-03-02 Thread mjmalpha

Any (approximate) idea of when
REBOL /View would be available
in its first production release version?

Or (asking for the whole enchilada),
is there a tentative timetable/schedule
that RT might share regarding goals
for the releases of REBOL /X's in
general ?

(Not that we enlightened, interested
parties would ever attempt to *hold* RT
to such a schedule    8)

Mike



[REBOL] Take the Vote! Re:(2)

2000-03-02 Thread ptretter

Charter Communications is working on the problem.  They have asked me to
provide monitoring for them which I currently am.  Please be patient.  If
anyone wants to provide free hosting let me know.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 02, 2000 02:29 PM
Subject: [REBOL] Take the Vote! Re:


 I can't even see the page, the browser just times out.

 [EMAIL PROTECTED] wrote:
 
  I received only 9 Project Submissions for the Rebol Collaboration
project.
  Today is the first day of voting.  Check it out at Paul's Rebol Page -
  http://p1-110.charter-stl.com/rebolsearch
 
  Yes - the Voting Form is powered by Rebol.
 
  Paul Tretter
  Paul's Rebol Page

 --
 Michal Kracik






[REBOL] out of range or past end

2000-03-02 Thread RChristiansen

When I run the following script, I get the following error:

** Script Error: Out of range or past end.
** Where: firstword: form first words

The script runs fine for several loops then quits on this error.  What may be 
happening?


REBOL []

in: read %messages.txt
lines: make block! 1
parse in [any [thru newline copy text to newline (append lines text)]]

out: make string! 10
append out {HTMLHEAD/HEADBODY bgcolor="#FF"}

forall lines [
fields: form first lines

words: []
clear words
foreach word parse fields ":" [append words word]

firstword: form first words
]



[REBOL] Return value from a Script???

2000-03-02 Thread mdb

Hello,

Is it possible for a script to return a value in a similar manner that a
function does? I've suddenly realised that i have been developing scripts
but don't seem to have any way for them to communicate with each other?

As in:

Script1.r
REBOL []

...

do/args %Script2.r arg
Have Script2 return a value

...

Thanks.

Mike.




[REBOL] Return value from a Script??? Re:

2000-03-02 Thread larry

Hi Mike

There is no formal mechanism for a script to return a value. There are
several distinct ways to use scripts:

1) As a function or object library. Then

do %my-script.r   ;loads the functions for use in the console or
within another script.

2) A script can set values for some global variables, which are then used
from the console or within a second script (more general case of 1) ).

In your example below, Script2.r could simply create a global variable:

(in Script2)
script2-return: [value1 value2 other-block "etc"]

Then Script1 can simply use 'script2-return in the code following the call
of Script2.

3) A script could write a file of results using 'load or 'write and these
could be read in by another script.

By designing scripts with these ideas in mind, it is probably not really
necessary to have an explicit return mechanism.

Hope this helps

Larry

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 02, 2000 5:37 PM
Subject: [REBOL] Return value from a Script???


 Hello,

 Is it possible for a script to return a value in a similar manner that a
 function does? I've suddenly realised that i have been developing scripts
 but don't seem to have any way for them to communicate with each other?

 As in:

 Script1.r
 REBOL []

 ...

 do/args %Script2.r arg
 Have Script2 return a value

 ...

 Thanks.

 Mike.




[REBOL] Rebol/Command and the kitchen sink Re:

2000-03-02 Thread anon_emouse

In article [EMAIL PROTECTED],
[EMAIL PROTECTED] writes
   Personally, I'd like to do all of my web development in Rebol/Core,
but it's looking like I'm going to need to create and access some MySQL
databases. Now I can do that with PHP, but not Rebol/Core, and I have no
idea when Rebol/Command is going to actually show up. 

Er, can you use PHP to gateway between Rebol and MySql? ( a Rebol script
to read a PHP page, and post to a PHP form?

---
Regards,Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.com/dynamo - The Homebuilt Dynamo
http://www.compkarori.com/dbase - The dBase bulletin



[REBOL] out of range or past end Re:

2000-03-02 Thread icimjs

Hi RChristiansen,

1. first words will fail when words is empty:

 first []
** Script Error: Out of range or past end.
** Where: first []

To avoid the error use pick words 1 instead:

 pick [] 1
== none


2.
in: read %messages.txt
lines: make block! 1
parse in [any [thru newline copy text to newline (append lines text)]]

why don't you use read/lines instead?

lines: read/lines %messages.txt

read/lines returns a block containing each line as a string! You don't need
the additional parsing and you get the same result.

3. 


   fields: form first lines

Since lines is a block containing strings, first lines will evaluate to a
string and you don't need the additional string conversion provided by form.

4.
   firstword: form first words

Since words was constructed by appending strings to the block words, first
words will evaluate to a string and you do not need the additional form.


5. 
   words: []
   clear words

You could instead write:

words: make block! 0

or

words: copy []

6.
append out {HTMLHEAD/HEADBODY bgcolor="#FF"}

This is the first element you are adding to the block out. Since append is
a convenience which in turn calls insert tail, and therefore more compute
intensive (hardly a worthwhile consideration in your code, just old habit
on my part), and out is empty at this point anyway, you could just as well
just use insert.

You apparently skip the first line that ends with an end of line character
(the "thru newline" part of your rule before you "copy text to newline".
I'm therefore using next read/lines %messages.txt to skip the first line in
messages.txt.

A simpler version of your code would look like this:

out: make string! 10
insert out {HTMLHEAD/HEADBODY bgcolor="#FF"}
words: make block! 0

foreach fields next read/lines %messages.txt [
  clear words
  foreach word parse fields ":" [append words word]
  firstword: pick words 1
]


At 05:43 PM 3/2/00 -0600, you wrote:
When I run the following script, I get the following error:

** Script Error: Out of range or past end.
** Where: firstword: form first words

The script runs fine for several loops then quits on this error.  What may
be 
happening?


REBOL []

in: read %messages.txt
lines: make block! 1
parse in [any [thru newline copy text to newline (append lines text)]]

out: make string! 10
append out {HTMLHEAD/HEADBODY bgcolor="#FF"}

forall lines [
   fields: form first lines

   words: []
   clear words
   foreach word parse fields ":" [append words word]

   firstword: form first words
]




;- Elan  [: - )]



[REBOL] out of range or past end Re:(2)

2000-03-02 Thread norsepower

I just finished reading your e-mail and I appreciate all of your help.  
I am still learning REBOL (obviously) and help like this is much 
appreciated.  I always like to know better ways to do things.  That is 
how you learn.  Thanks.

-Ryan

A simpler version of your code would look like this:

out: make string! 10
insert out {HTMLHEAD/HEADBODY bgcolor="#FF"}
words: make block! 0

foreach fields next read/lines %messages.txt [
  clear words
  foreach word parse fields ":" [append words word]
  firstword: pick words 1
]



[REBOL] [REBOL] Rebol/Command and the kitchen sink Re[2]:

2000-03-02 Thread kenss . lo

Author:  [EMAIL PROTECTED] at Internet
Date:2000/3/3 04:37 PM

In article [EMAIL PROTECTED], 
[EMAIL PROTECTED] writes
   Personally, I'd like to do all of my web development in Rebol/Core, 
but it's looking like I'm going to need to create and access some MySQL 
databases. Now I can do that with PHP, but not Rebol/Core, and I have no 
idea when Rebol/Command is going to actually show up. 
 
Er, can you use PHP to gateway between Rebol and MySql? ( a Rebol script 
to read a PHP page, and post to a PHP form?
 
Then why not use php direct? I'm thinking whether the effort spent is 
justified while waiting rebol to catch up.  And the uncertainty of a price 
tag on rebol/??? other than core.

Someone in the list suggested read/write tcp port 3306.  I tried and mysql 
asked for handshake.  libmysql.c will have more details but that's too 
heavy for me. Ha ha.

Received: from brando.rebol.net ([199.4.95.216]) by wbnts05.wpelb.gov.hk with
SMTP
  (IMA Internet Exchange 3.11) id 00017D11; Fri, 3 Mar 2000 11:56:16 +0800
Received: from office.rebol.net (gibraltar.rebol.net [192.168.2.1])
by brando.rebol.net (8.9.3/8.9.3) with SMTP id UAA31209;
Thu, 2 Mar 2000 20:56:25 -0800
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Fri, 3 Mar 2000 16:37:59 +1200
Subject: [REBOL] Rebol/Command and the kitchen sink Re:
Message-Id: 6X$[EMAIL PROTECTED]
X-REBOL: 2.2.0.4.2 "The Internet Messaging Language (TM) WWW.REBOL.COM"
MIME-Version: 1.0
Precedence: bulk
X-MindSpring-Loop: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
In-Reply-To: [EMAIL PROTECTED]
X-Mailer: Turnpike Integrated Version 4.02 U BbO6nlPrfQ743Pgm+M35Oxd6z5
X-SELMA: [REBOL] 118032


[REBOL] Re: Rebol/Command and the kitchen sink

2000-03-02 Thread woodward

 In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] writes
Personally, I'd like to do all of my web development in Rebol/Core,
 but it's looking like I'm going to need to create and access some MySQL
 databases. Now I can do that with PHP, but not Rebol/Core, and I have no
 idea when Rebol/Command is going to actually show up. 
 
 Er, can you use PHP to gateway between Rebol and MySql? ( a Rebol script
 to read a PHP page, and post to a PHP form?
 
 ---
 Regards,Graham Chiu

Having done something similar with ASP and MS-SQL Server 7, using ASP to
fetch pages to a server, and then using ASP to parse them (by requesting
the asp page with the file name as the parameter) and spit back a
success/fail message, and then having Rebol take the appropriate action
(deleting the file because it was inserted successfully, or emailing the
admin about a failure, and leaving the file in the queue to be reprocessed
the next time around)

I can say it works.  It's ugly, but it gets the job done.  On the other
hand - what [EMAIL PROTECTED] is trying to accomplish is just better
done in PHP alone.  Why bother to add another layer on top of it?  Just to
use Rebol?  That kind of solution flies in the face of the Rebol
phillosophy.

K   I   S   S

Keep it Simple, Stupid.

The simple solution is usually the best, and most correct one.  When
Rebol/Command comes out, and you can access deeper functionality using
Rebol - then will be the time to give it a whirl to provide dynamic web
pages with a database back-end.  Remember, just because you can do
something doesn't mean you should.

- Porter



[REBOL] Rebol/Command and the kitchen sink Re:(2)

2000-03-02 Thread rex

On Thu, Mar 2, 2000,  [EMAIL PROTECTED] wrote:

Having done something similar with ASP and MS-SQL Server 7, using ASP to
fetch pages to a server, and then using ASP to parse them (by requesting
the asp page with the file name as the parameter) and spit back a
success/fail message, and then having Rebol take the appropriate action
(deleting the file because it was inserted successfully, or emailing the
admin about a failure, and leaving the file in the queue to be reprocessed
the next time around)

I can say it works.  It's ugly, but it gets the job done.  On the other
hand - what [EMAIL PROTECTED] is trying to accomplish is just better
done in PHP alone.  

First, I've never really said what I'm trying to accomplish. ;) I
just said I'm probably going to need  a database. 
For instance, one thing I'd like to implement on the site I'm working
on are simple discussion forums. Nothing really fancy, and certainly
nothing that would contain more than a couple of hundred messages. A
MySQL database certainly would do the job, but seems a little like overkill. 

But what's the simplest way to serialize modifications to the forum
file/database by Rebol CGI scripts?  I've thought about using a temporary
file as a crude sort of semaphore. (Hence, one of the needs for a unique
ID...) 
Another possibility might be to make a 'simple' little Rebol server
daemon to serialize or synchronize file/database accesses by CGI scripts. 
Still another possibility is to somehow integrate just enough PHP to
cover Rebol/Core's deficiencies. 

Why bother to add another layer on top of it?  Just to
use Rebol?  That kind of solution flies in the face of the Rebol
phillosophy.

K  I   S   S

Keep it Simple, Stupid.

That's what I'm trying to do. I don't think reading a PHP page to get
the time with millisecond resolution is a particularly complex task.
Reading PHP pages to access a database might very well be too hairy to
try. I haven't attempted it yet, so I don't know.
But for the real meat of what I want to do, Rebol's flexible syntax
really seems like a boon, i.e. what I want will probably take a lot more
PHP code to implement than Rebol code. 

The simple solution is usually the best, and most correct one.  When
Rebol/Command comes out, and you can access deeper functionality using

Well, that's what I'm wondering about. I can definitely run
Rebol/Core on the site I'm working on, but I don't know what the
requirements for installing Rebol/Command are and I'm pretty sure my
hosting provider won't install the Rebol/Apache module when it comes out. 
Incidentally, does anyone know what new capabilities the Rebol/Apache
module provides? Is it like PHP where you can embed arbitrary chunks of
Rebol code in HTML? Or is it just something that speeds up Rebol CGI
execution?

Rebol - then will be the time to give it a whirl to provide dynamic web
pages with a database back-end.  Remember, just because you can do
something doesn't mean you should.

You know, for now, I'd be happy with some simple and robust ways to
synchronize multiple active Rebol CGI processes and a really simple
flat-file database. This sort of thing should be possible in Core. 

.:Eric

P.S. Here's a function which should generate a unique hexadecimal ID and
the associated html for the mstime.phtml file. This isn't too funky is it? 

unique-id: function []
[ s  r  text]
[   
r: read http://www.smallandmighty.com/mstime.phtml  
parse r [thru "body" copy text to "/body"]
text: trim skip text 6
s: to-decimal text
s: s * 10
s: to-string to-hex to-integer s
return s
]

HTML
HEAD
/HEAD
BODY
?
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
print $mtime;
?
/BODY
/HTML



[REBOL] Rebol/Command and the kitchen sink Re:(2)

2000-03-02 Thread rex

On Fri, Mar 3, 2000,  [EMAIL PROTECTED] wrote:

Er, can you use PHP to gateway between Rebol and MySql? ( a Rebol script
to read a PHP page, and post to a PHP form?

   While I haven't tried it, it certainly looks feasible. If you fetch a
page from Apache, any embedded PHP script will be executed, and the
results could be passed to a Rebol cgi program in a variety of different
ways. Another option is to have a PHP script launch an instance of Rebol
from the command line and pipe stuff to it and from it.
As others have mentioned, too much mixing of Rebol and PHP scripts is
bound to be hard to maintain. But if some rudimentary database facilities
and other misc. functions could be provided with a few pages of short PHP
scripts, it might be worthwhile to give it a go, especially since PHP is
so widely installed.

.:Eric



[REBOL] Rebol/Command and the kitchen sink Re:(3)

2000-03-02 Thread Petr . Krenzelok

 The simple solution is usually the best, and most correct one.  When
 Rebol/Command comes out, and you can access deeper functionality using

 Well, that's what I'm wondering about. I can definitely run
 Rebol/Core on the site I'm working on, but I don't know what the
 requirements for installing Rebol/Command are and I'm pretty sure my
 hosting provider won't install the Rebol/Apache module when it comes out.
 Incidentally, does anyone know what new capabilities the Rebol/Apache
 module provides? Is it like PHP where you can embed arbitrary chunks of
 Rebol code in HTML? Or is it just something that speeds up Rebol CGI
 execution?


Both of them. In real, REBOL Apache module is very nicely configurable. I've
heard gurus :-) speaking of
much more deep configurability than e.g. PHP. You can install your own handlers,
it's just REBOL code, right?
So, you can insert code to be processed by SSI handler, and you can run directly
.r files - that's the benefit, as
REBOL/Apache module is preloaded, and that means it doesn't need to start rebol
to execute the script 

 Rebol - then will be the time to give it a whirl to provide dynamic web
 pages with a database back-end.  Remember, just because you can do
 something doesn't mean you should.

 You know, for now, I'd be happy with some simple and robust ways to
 synchronize multiple active Rebol CGI processes and a really simple
 flat-file database. This sort of thing should be possible in Core.


I would like to see an ordinary xBase databases (.dbf). They are simple and
editable in many external environments. They are
powerfull enough even for tens of thousands of records 

Regards,

-pekr-


 .:Eric

 P.S. Here's a function which should generate a unique hexadecimal ID and
 the associated html for the mstime.phtml file. This isn't too funky is it?

 unique-id: function []
 [ s  r  text]
 [
 r: read http://www.smallandmighty.com/mstime.phtml
 parse r [thru "body" copy text to "/body"]
 text: trim skip text 6
 s: to-decimal text
 s: s * 10
 s: to-string to-hex to-integer s
 return s
 ]

 HTML
 HEAD
 /HEAD
 BODY
 ?
 $mtime = microtime();
 $mtime = explode(" ",$mtime);
 $mtime = $mtime[1] + $mtime[0];
 print $mtime;
 ?
 /BODY
 /HTML



[REBOL] Rebol/Command and the kitchen sink Re:(3)

2000-03-02 Thread Petr . Krenzelok



[EMAIL PROTECTED] wrote:

 On Fri, Mar 3, 2000,  [EMAIL PROTECTED] wrote:

 Er, can you use PHP to gateway between Rebol and MySql? ( a Rebol script
 to read a PHP page, and post to a PHP form?

While I haven't tried it, it certainly looks feasible. If you fetch a
 page from Apache, any embedded PHP script will be executed, and the
 results could be passed to a Rebol cgi program in a variety of different
 ways. Another option is to have a PHP script launch an instance of Rebol
 from the command line and pipe stuff to it and from it.
 As others have mentioned, too much mixing of Rebol and PHP scripts is
 bound to be hard to maintain. But if some rudimentary database facilities
 and other misc. functions could be provided with a few pages of short PHP
 scripts, it might be worthwhile to give it a go, especially since PHP is
 so widely installed.

What about TCP/IP? I've heard someone mentioned "each" database engine is
accessible thru TCP/IP nowadays.
And we have've got ports nicely working in REBOL, right? Just curious.

-pekr-



 .:Eric