How to use socket commands and function in a .irev script

Jim Bufalini jim at visitrieve.com
Sun Sep 20 16:47:29 EDT 2009


Jérôme Rosat wrote:

> I believed naively that a script .irev behaved like a stack and
> "persist" in memory. I conclude that a .irev with an on-rev web
> account does nothing more than a "ordinary" hosting account  with
> Revolution CGIs.

This is 100% correct and should always be kept in mind. So if you POST to an
irev script, it is identical to posting to a rev CGI or any other CGI, for
that matter. The irev script only persists in the server memory for as long
as it runs and then it is gone, along with all of its vars, settings, etc.
The main advantages of using irev on On-Rev instead of rev CGI is you don't
have to set anything up to use irev like you have to do with rev CGI and you
can debug the irev script in real time while it is running on the server.
Other than that, and for the purposes you are using an irev script for
uploading and downloading data, think of the two as identical.

Aloha from Hawaii,

Jim Bufalini






More information about the use-livecode mailing list