Re: Rev compress, cgi, php, zip

2009-12-11 Thread stephen barncard
Maybe the ZIP lib calls would have the right compression. What is the
difference between REVZIP calls and compress?
There's also the shell, which might certainly call the same kind of routines
that PHP does.
-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/12/11 Jim Ault jimaultw...@yahoo.com

 I am refining my algorithms to connect web hosted servers that do not work
 with Revolution CGI to On-Rev and other web servers that do run Rev CGI.

 I have several mechanisms working for moving data and processing logic
 between domains, and would like to add the compression scheme as follows:

 server A is OnRev
 server B is a host that does not do Rev CGI

 step 1 is to build a variable on server B using php
 step 2 is to send the variable using POST in php
 step 3 is to have a Rev script decompress()

 So far my attempts are not successful.

 Rev uses
 try
  put decompress(varFromServerB) into varUnzipped
 catch errnum
  put Error decompressing =  errnum into buffer
 end try

 PHP uses  gzcompress($varFromServerB)

 -1-  does decompress work in Rev CGI using Linux 3.5 version
 -2-  is there a way to make the compressions compatible?

 Of course I could just make a call to a utility script  decompr.php
  located on the OnRev server that returns the decompressed string, but that
 would make the processing take slightly longer.

 When I get this smoothed out, I will post a web page or two showing web
 pages on different servers running php, Rev scripts, Rev stacks, and irev
 scripts.  These will be interconnected and show different variations.  One
 variation will be a single web page hosted on OnRev that uses all 4 types of
 scripting to render the page and interact with the visitor.


 Jim Ault
 Las Vegas



 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev compress, cgi, php, zip

2009-12-11 Thread David Beck


Hi Jim,

In order to decompress data in PHP that was compressed using Rev you 
need to strip a few bytes off the start of the data:


   $decompressedData = gzinflate( substr( $dataCompressedWithRev , 10 ) 
);   

However I have not been able to figure out how to go the other way, that 
is, decompressing data with Rev that was compressed with PHP. If you do 
determine how to do this please let me know.


Also, you might find the callPHP library I posted a few weeks ago 
useful, which allows PHP functions to be called from Rev stacks or, I 
would imagine, an on-Rev script, although I have not worked with on-Rev. 
The library is open source so feel free to use it directly or strip it 
for parts. You can download it from:


http://www.rotundasoftware.com/rev/callPHP.html

Hope that helps,

David Beck
Rotunda Software
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev compress, cgi, php, zip

2009-12-11 Thread Jim Ault
Your library is on my list to study as I journey toward my client's  
goals.
I have a couple new ideas (after reading Stephen Barncard's email) and  
digging up some of my own work from 2008.

I think a couple solutions will blossom and I will let you know.

The most valuable part for my project you have answered
   Rev compress(block)  decompress(block) in PHP
... this will allow a remote page to be displayed with code generated  
by Rev templates and data.


Part of the methodology is to generate static page portions from a  
library/database kept on myaccount.on-rev.com.
When these page portions are updated, calls to the remote sites are  
made to utility scripts that accept/decode/store them locally for  
display speed.


Most updates will be info/pages that are appended to the site rather  
than requiring interactive queries or ajax.

I am far more accomplished with Rev than with PHP.

Thanks for the quick reply.

On Dec 11, 2009, at 9:38 AM, David Beck wrote:



Hi Jim,

In order to decompress data in PHP that was compressed using Rev you  
need to strip a few bytes off the start of the data:


  $decompressedData = gzinflate( substr( $dataCompressedWithRev ,  
10 ) );
However I have not been able to figure out how to go the other way,  
that is, decompressing data with Rev that was compressed with PHP.  
If you do determine how to do this please let me know.


Also, you might find the callPHP library I posted a few weeks ago  
useful, which allows PHP functions to be called from Rev stacks or,  
I would imagine, an on-Rev script, although I have not worked with  
on-Rev. The library is open source so feel free to use it directly  
or strip it for parts. You can download it from:


http://www.rotundasoftware.com/rev/callPHP.html

Hope that helps,

David Beck
Rotunda Software


Jim Ault
Las Vegas



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI for ecommerce

2005-03-09 Thread Ro Nagey
Yes, you can! :)
And, if you're looking for a great explanation of how to use CGI's in 
Rev, take a look at Jacque's brilliant article at: 
http://www.hyperactivesw.com/cgitutorial/index.html

Ro Nagey
On Mar 8, 2005, at 10:46 AM, paolo wrote:
Can I use  Rev in CGI to set an ecommerce web-site?
Any of you have set a system like that?
Best regards
Paolo Mazza
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

Ro Nagey ~ [EMAIL PROTECTED] ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI for ecommerce

2005-03-09 Thread Robert Brenstein
You can indeed but there is a limit how much traffic such a cgi can 
handle. In other words, it may not be suitable for a high-traffic web 
site. And before delving too deep into programming, make sure that 
credit card processing works with whoever you use for your money 
handling.

Yes, you can! :)
And, if you're looking for a great explanation of how to use CGI's 
in Rev, take a look at Jacque's brilliant article at: 
http://www.hyperactivesw.com/cgitutorial/index.html

Ro Nagey
On Mar 8, 2005, at 10:46 AM, paolo wrote:
Can I use  Rev in CGI to set an ecommerce web-site?
Any of you have set a system like that?
Best regards
Paolo Mazza
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
Ro Nagey ~ [EMAIL PROTECTED] ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI for ecommerce

2005-03-09 Thread jbv


Robert ,

 You can indeed but there is a limit how much traffic such a cgi can
 handle. In other words, it may not be suitable for a high-traffic web
 site.

this topic already arose on this list, and I remember asking
the question what is the limit of traffic that Rev cgi can handle,
but never got any answer...
Any clue ?
A couple of years ago I've built a few event websites around Rev cgi
(with rather complex dynamic html pages, email processing etc)
with about 45,000 visits in 10 days and over 2 millions viewed pages,
but never experienced any problem...

JB

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI for ecommerce

2005-03-08 Thread jbv


paolo,

Depends on what you mean by ecommerce, but
I guess the answer is yes.
I'm presently working on such a project (the site
will actually sell data online, not goods) and the
whole thing is built around Rev cgi and mySQL
and my client is delighted...

JB

 Can I use  Rev in CGI to set an ecommerce web-site?

 Any of you have set a system like that?

 Best regards

 Paolo Mazza

 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI

2005-03-01 Thread Mark Waddingham
From what I recall of PHP's implementation of session globals it's
actually really simple - indeed a Transcript library could be written to
do something similar.

When a session is initiated, depending on variables that are set, PHP
creates a unique session identifier and either passes this as a cookie,
a GET variable, or POST variable. Then, on termination of the script, it
writes the values of all the session variables to a file keyed by the
session identifier. Upon loading of the script, if a session identifier
is present in some form as described above, it looks up the session,
does a few security checks and then loads the variables from the
appropriate file.

Obviously, this is quite a terse overview, and some general house-
keeping is needed but the idea is simple enough :o)

Warmest regards,

Mark.

On Mon, 2005-02-28 at 06:59 +0100, Terry Vogelaar wrote:
 In my case, I know several other languages to be used for CGI-alike 
 things. I have done things in ASP, PHP, Perl and some less known 
 languages, but none of them make enough sense to compete with Rev CGIs 
 since I discovered that.
 
 About session globals, there are a lot of techniques to workaround 
 this. Cookies can be used, although I have to investigate how. I often 
 use hidden inputs in HTML-forms and encoded parameters in URLs (like: 
 form.cgi?stack=testcmd=todologin=terrypass=secret)
 
 Terry
 
 Op 27-feb-05 om 20:11 heeft Sivakatirswami het volgende geschreven:
 
  Confirmed... we have *only* revolution for *all* CGIs on on all our 
  domains. reason? I don't know any other language. I have yet to find 
  something I can't do... though PHP's session globals would be nice.
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI

2005-02-27 Thread Sivakatirswami
Confirmed... we have *only* revolution for *all* CGIs on on all our 
domains. reason? I don't know any other language. I have yet to find 
something I can't do... though PHP's session globals would be nice.
Sivakatirswami
Himalayan Academy Publications
at Kauai's Hindu Monastery
[EMAIL PROTECTED]
www.HimalayanAcademy.com,
www.HinduismToday.com
www.Gurudeva.org
www.Hindu.org

On Feb 19, 2005, at 6:37 PM, J. Landman Gay wrote:
On 2/19/05 11:42 AM, Stephen Barncard wrote:
Jackie - this is incredible. Thanks for the great tutorial. I get it 
now. Very useful stuff! I bounce between web and app design all the 
time and this brings it all together.
Thanks, I'm glad it helped. It is good to know that writing it wasn't 
a complete waste of time. ;) I have a number of CGIs on my site, 
mostly to deal with junk mail and check on mailboxes that I don't 
regularly read. Rev CGIs seem to be able to do just about anything and 
they are pretty fast.

sqb
Op 19-feb-05 om 6:25 heeft Paul Salyers het volgende geschreven:
What is needed to tun a Rev program in a CGI folder so anyone can 
access from the web with a web browser?

You should read Jacque's great tutorial on 
http://www.hyperactivesw.com/cgitutorial/index.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI

2005-02-27 Thread de Mare
In my case, I know several other languages to be used for CGI-alike 
things. I have done things in ASP, PHP, Perl and some less known 
languages, but none of them make enough sense to compete with Rev CGIs 
since I discovered that.

About session globals, there are a lot of techniques to workaround 
this. Cookies can be used, although I have to investigate how. I often 
use hidden inputs in HTML-forms and encoded parameters in URLs (like: 
form.cgi?stack=testcmd=todologin=terrypass=secret)

Terry
Op 27-feb-05 om 20:11 heeft Sivakatirswami het volgende geschreven:
Confirmed... we have *only* revolution for *all* CGIs on on all our 
domains. reason? I don't know any other language. I have yet to find 
something I can't do... though PHP's session globals would be nice.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI

2005-02-19 Thread de Mare
Op 19-feb-05 om 6:25 heeft Paul Salyers het volgende geschreven:
What is needed to tun a Rev program in a CGI folder so anyone can 
access from the web with a web browser?
You should read Jacque's great tutorial on 
http://www.hyperactivesw.com/cgitutorial/index.html

Don't expect that web users will see exactly what the program users 
will see. It requires a totally different approach because CGI is 
'faceless' and you have to give it a new 'face' in HTML. But you may be 
able to reuse parts of the functionality.

Terry
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI

2005-02-19 Thread Stephen Barncard
Jackie - this is incredible. Thanks for the great tutorial. I get it 
now. Very useful stuff! I bounce between web and app design all the 
time and this brings it all together.

sqb
Op 19-feb-05 om 6:25 heeft Paul Salyers het volgende geschreven:
What is needed to tun a Rev program in a CGI folder so anyone can 
access from the web with a web browser?
You should read Jacque's great tutorial on 
http://www.hyperactivesw.com/cgitutorial/index.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI

2005-02-19 Thread J. Landman Gay
On 2/19/05 11:42 AM, Stephen Barncard wrote:
Jackie - this is incredible. Thanks for the great tutorial. I get it 
now. Very useful stuff! I bounce between web and app design all the time 
and this brings it all together.
Thanks, I'm glad it helped. It is good to know that writing it wasn't a 
complete waste of time. ;) I have a number of CGIs on my site, mostly to 
deal with junk mail and check on mailboxes that I don't regularly read. 
Rev CGIs seem to be able to do just about anything and they are pretty fast.

sqb
Op 19-feb-05 om 6:25 heeft Paul Salyers het volgende geschreven:
What is needed to tun a Rev program in a CGI folder so anyone can 
access from the web with a web browser?

You should read Jacque's great tutorial on 
http://www.hyperactivesw.com/cgitutorial/index.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI

2005-02-18 Thread J. Landman Gay
On 2/18/05 11:25 PM, Paul Salyers wrote:
What is needed to tun a Rev program in a CGI folder so anyone can access 
from the web with a web browser?
This: http://www.hyperactivesw.com/cgitutorial/index.html
--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution