RevConference - Client Server vs Stateless

Pierre Sahores psahores at easynet.fr
Tue Jan 13 07:16:26 EST 2004


Le mar 13/01/2004 à 03:38, Vikram Singh a écrit :
> Pierre,
> 
> Looks like something interesting. Can you please describe this.
> 
> Regards
> Vikram
> 

Vikram,

This is just a "starter point toy" to have transcript code server-sided
parsed from within a rsptest.php file by a asplike.rsp rev script.
Apache and PHP have to be installed.

The "rsptest.php" file have to contains :

> <? passthru('#!/bin/sh
> exec 2>&1
> echo \
> \
> \
> set itemdel to \"/\" \
> put \"Hi !\" \&\& item 2 of the short date \& \"/\" \& item 1 of the
short date \& \"/\" \& item 3 of the short date \&\& word 1 of the short
time \
> put \"This is a Rev ASP/JSP alike way to output Transcript contents to
the Web\.\" \
> \
> \
> | /srv/www/celia/asplike.rsp'); ?> 

The php's "passthru" command invoques the echo's shell command witch
contains, before the "|", the transcript code (including the backslashs
tags to let the bash shell know that the code have to be send "as is")
and, after the pipe, the path to the server-side rev script witch will
execute the code (/srv/www/celia/asplike.rsp).

The "asplike.rsp" script is a text file witch contains :

> #!/home/pierre/Revolution-2.1.2/revolution
> on startup
>   # start using stack "liburl"
>   read from stdin until empty
>   do it
> end startup

Remember that's this code is only a "just to see" test toy,...
The next steep would be to find a way to remove the PHP's and Shell's parts
from the process... Why not trough an apache's rev's module, Tuviah ?

-- 
Best Regards, Pierre Sahores

100, rue de Paris
F - 77140 Nemours

psahores at easynet.fr

GSM:   +33 6 03 95 77 70
Pro:   +33 1 41 60 52 68
Dom:   +33 1 64 45 05 33
Fax:   +33 1 64 45 05 33

Inspection académique de Seine-Saint-Denis
Applications et SGBD ACID SQL (WEB et PGI)
Penser et produire "delta de productivité"


More information about the use-livecode mailing list