Re: Classic CGI on Win

2010-08-11 Thread Mark Wieder
Malte-

I found the writeup I posted to this list on 18 April 2006 archived at
gmane. I'm posting it in its entirety. In 2006 I was still using a
Win2k server, so some of this is probably different now. I still don't
recommend doing this, but this should at least give you an idea of
what you'd be in for if you did decide to go this route.

-

I don't recommend this, but if you *really* have to get Revolution
working as a cgi service on a Windows server, here's how. Note that
you have to start with having IIS already installed. And you have to
be logged in as an administrator. And that you're probably much better
off installing Apache and working with that. It's more secure and more
stable and open source and easier to configure and work with.

http://www.apache.org/

But if you gotta you gotta...

Basically what you're going to do here is create a directory to hold
the executable and scripts, then configure IIS to know about .cgi
files and associate them with the Revolution executable. Out of the
box, IIS is by design fairly dumb. It knows how to run ASP code
embedded in web pages, but for anything else you have to go through a
lot of contortions.

Start by pointing a web browser at:
http://my.execpc.com/~keithp/bdlognt.htm

Now click on the Section labeled "IIS Server Setup". Don't bother
installing perl unless you're interested in running perl scripts. A
few paragraphs down, however, is that part about creating a cgi-bin
directory *outside* of the inetpub directory. Start from there,
following all the directions verbatim (you don't have to call the
directory "perl-scripts", though). If you're having trouble finding
the Internet Service Manager it's either on the Start Menu in
Administrative Tools or in a control panel named Administrative Tools
or else you don't have IIS installed.

When you reach the part labeled "Setting Up Scripts", stop. Instead of
browsing for the perl interpreter you'll want to find the Revolution
executable. I placed a copy in the cgi-bin folder just to make things
easy on myself, but if you have Revolution installed you can just
browse to the file in your Revolution folder. Add the parameter string
(without quotes) after the executable, so you should end up with:

C:\cgi-bin\revolution.exe %s

Create the canonical "hello.cgi" test script as a text file and copy
it to the same cgi-bin directory you dumped the executable in. Note
that Windows will ignore the #!revolution line at the beginning of the
file, so it doesn't matter what it says, or even if it exists at all.

Launch a DOS command window from the start menu. Assuming that you've
called your cgi-bin directory "cgi-bin", type

cd \cgi-bin
revolution hello.cgi >test.txt

Type dir. You should see a 39-byte file named "test.txt".

Type test.txt

You should see "Hello World!". This verifies that your script is
correct.

Now you're configured and ready to go. Close the ISM if you haven't
already, launch Services from the Administrative Tools, and launch the
World Wide Web Publishing Service down at the bottom. If it isn't
started already then right-click on it and select "Start" from the
contextual menu.

Once it's up and running go to a client computer, launch a web
browser, and point it at the hello.cgi file. In my case, my Win2k
server is at 192.168.0.253, so I go to:

http://192.168.0.253/cgi-bin/hello.cgi

You should now see the text "Hello World!" on your browser.

Whoopee. You could've done all that by installing Apache, but you'd
miss the headaches, and what fun would that be?

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
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: Learning CGI - Woes

2010-08-10 Thread J. Landman Gay

On 8/10/10 6:28 PM, Bob Cole wrote:

On August 4th there was a lot of chatter SQL queries and logins going across
the network and what a bad idea that is.  There was discussion about CGIs and
Jacque's tutorial and other resources that I have now studied. I know I have
followed the steps (many times) but I can't get the Hello World script to work!


As mentioned, 3.5 is the last CGI engine that works. This has sort of 
broken Zygodact too, since one of it's features is CGI compatibility. I 
did get RR's permission to send the 3.5 Linux CGI engine to a customer 
to overcome that. If you don't have Rev 3.5, ping me, I think it'll be 
okay, since you can't really use the Linux CGI engine for development.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
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: Learning CGI - Woes

2010-08-10 Thread Andre Garzia
The last engine to have that behaviour is 3.5. Can't use 4.x as CGI.

3.5 is great, till some time ago I was using 2.9

:D

On Tue, Aug 10, 2010 at 9:42 PM, Malte Pfaff-Brill
wrote:

> Hi Bob,
>
> I could not get it to work with the 4.0 engine either. I did fall back to
> the 3.5 engine which works as advertised. :-)
>
> Hth,
>
> Malte___
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: Learning CGI - Woes

2010-08-10 Thread Malte Pfaff-Brill
Hi Bob,

I could not get it to work with the 4.0 engine either. I did fall back to the 
3.5 engine which works as advertised. :-)

Hth,

Malte___
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


Learning CGI - Woes

2010-08-10 Thread Bob Cole
On August 4th there was a lot of chatter SQL queries and logins going across 
the network and what a bad idea that is.  There was discussion about CGIs and
Jacque's tutorial and other resources that I have now studied. I know I have 
followed the steps (many times) but I can't get the Hello World script to work! 
Here is my set up:
- I am using Mac OS X 10.6.4 and Web Sharing is on.
- I put copied the script from Jacque's tutorial into BBEdit, 
  saved it with Unix line endings (LF) and Unicode (UTF-8):
#!revolution -ui

on startup
  put "Content-type: text/plain" & cr & cr  
  put "Hello World!"
end startup
- I put this hello.cgi file into the /Library/WebServer/CGI-Executables folder.
- I copied the standalone to the CGI-Executables folder from:
   /Applications/Revolution Enterprise/4.0.0-gm-1/Runtime/Mac OS \
   X/x86-32/Standalone.app/Contents/MacOS/Standalone

- I renamed it as revolution
- I used chmod 755 on both hello.cgi and revolution
- I call the script from FireFox 3.6.8 with 
  http://localhost/cgi-bin/hello.cgi

- In the browser I see:
Internal Server Error [...snip...]

- In the console I see:
[Tue Aug 10 17:56:16 2010] [error] [client ::1] Tue Aug 10 17:56:16 \
 myMac.local revolution[1589] : kCGErrorFailure: Set a breakpoint @ \
 CGErrorBreakpoint() to catch errors as they are logged.
[Tue Aug 10 17:56:16 2010] [error] [client ::1] Premature end of script \
 headers: hello.cgi

I used the Terminal and ran: ./revolution ./hello.cgi but there is no output

Nothing works. What am I missing? Do I have to modify httpd.conf?

I put a simple perl script in the cgi-bin folder and it runs fine.  
I even tried some php scripts and they run ok from the cgi-bin folder, too.

Any help would be appreciated!
Bob

___
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: Classic CGI on Win

2010-08-10 Thread Mark Wieder
Malte-

Tuesday, August 10, 2010, 1:03:48 AM, you wrote:

> Mark, you raised my curiosity. What exactly were the problems you
> encountered on IIS? Did it work at all? Or was it just complicated?

It's been some four years now since I did this, so my memory is a bit
hazy about it. I did write this up, but thanks to my brilliant
organizational skills I can't find the writeup at the moment. I do
remember having to change line endings on scripts, of course. I
remember having to convince the IIS security policy that rev scripts
were acceptable files to serve. I remember getting generic 500 errors
from the server rather than anything meaningful. I remember the Alamo.
It did work eventually. I'll see if I can dig up my writeup for you,
but my conclusion after having gone through the experience was that
Apache was a *much* better solution for serving cgi scripts than IIS.
And I doubt that anyone with any IIS experience will be surprised by
this.

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
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: Classic CGI on Win

2010-08-10 Thread Malte Pfaff-Brill
Thanks for the head ups guys. Will have my coworker try to set things up today.

Mark, you raised my curiosity. What exactly were the problems you encountered 
on IIS? Did it work at all? Or was it just complicated?

All the best,

Malte___
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: Classic CGI on Win

2010-08-09 Thread Mark Wieder
Malte-

Monday, August 9, 2010, 4:19:11 AM, you wrote:

> Is this possible? If so, which components do I need to install where? Server 
> can run Apache.

Use Apache. I did this once (and once only) using Windows' own IIS
server technology. I don't recommend this and I won't do it again.
Just use Apache, forget it's a Windows box, and do everything normally
(copy into the cgi-bin folder, set the permissions, etc).

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
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: Classic CGI on Win

2010-08-09 Thread Andre Garzia
I tried the standalone approach under linux many years ago and while
the -ui setting would not load the graphic user interface it would
still require the libs to be present which would not work for my
servers. Maybe things changed, we should try it again.

:D

On Mon, Aug 9, 2010 at 11:23 AM, Peter W A Wood  wrote:
> Andre
>
> I must admit I only tried a simple "hello world" test on Mac OS X and then 
> not as a CGI but a simple command line executable.
>
> Regards
>
> Peter
>
> On 9 Aug 2010, at 21:44, Andre Garzia wrote:
>
>> Peter,
>>
>> The standalone trick will not work on some circunstances. If you don't
>> have X11 installed on the linux machine (Common for servers), the
>> standalone will not load due to missing libraries. :-/
>>
>> PS: This was the case long time ago, need to double check now if it still 
>> holds.
>>
>> Andre
>>
>> On Mon, Aug 9, 2010 at 10:36 AM, Peter W A Wood  
>> wrote:
>>> Malte
>>>
>>> Thanks to RRobert from Hamburg, if you can do all you want in a standalone, 
>>> you can do it as a CGI. It is easy to forget that a CGI is just an ordinary 
>>> program with specific output. His detailed explanation is here - 
>>> http://forums.runrev.com/phpBB2/viewtopic.php?f=8&t=5160&p=24096&hilit=RRobert#p23142
>>>
>>> Also, this may be of interest 
>>> http://forums.runrev.com/phpBB2/viewtopic.php?f=15&t=4755#p21119
>>>
>>> Regards
>>>
>>> Peter
>>>
>>> On 9 Aug 2010, at 19:19, Malte Pfaff-Brill wrote:
>>>
>>>> Hi folks,
>>>>
>>>> as we do not yet have a win version of revServer, I need to set up a CGI 
>>>> on Win Server 2003 (if possible)
>>>>
>>>> Requirements are:
>>>>
>>>> Needs to work with local postGreSQL DB
>>>> Needs to work with revXML
>>>>
>>>> Is this possible? If so, which components do I need to install where? 
>>>> Server can run Apache.
>>>>
>>>> Cheers,
>>>>
>>>> Malte___
>>>> 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
>>>
>>
>>
>>
>> --
>> http://www.andregarzia.com All We Do Is Code.
>> ___
>> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: Classic CGI on Win

2010-08-09 Thread Peter W A Wood
Andre

I must admit I only tried a simple "hello world" test on Mac OS X and then not 
as a CGI but a simple command line executable.

Regards

Peter

On 9 Aug 2010, at 21:44, Andre Garzia wrote:

> Peter,
> 
> The standalone trick will not work on some circunstances. If you don't
> have X11 installed on the linux machine (Common for servers), the
> standalone will not load due to missing libraries. :-/
> 
> PS: This was the case long time ago, need to double check now if it still 
> holds.
> 
> Andre
> 
> On Mon, Aug 9, 2010 at 10:36 AM, Peter W A Wood  wrote:
>> Malte
>> 
>> Thanks to RRobert from Hamburg, if you can do all you want in a standalone, 
>> you can do it as a CGI. It is easy to forget that a CGI is just an ordinary 
>> program with specific output. His detailed explanation is here - 
>> http://forums.runrev.com/phpBB2/viewtopic.php?f=8&t=5160&p=24096&hilit=RRobert#p23142
>> 
>> Also, this may be of interest 
>> http://forums.runrev.com/phpBB2/viewtopic.php?f=15&t=4755#p21119
>> 
>> Regards
>> 
>> Peter
>> 
>> On 9 Aug 2010, at 19:19, Malte Pfaff-Brill wrote:
>> 
>>> Hi folks,
>>> 
>>> as we do not yet have a win version of revServer, I need to set up a CGI on 
>>> Win Server 2003 (if possible)
>>> 
>>> Requirements are:
>>> 
>>> Needs to work with local postGreSQL DB
>>> Needs to work with revXML
>>> 
>>> Is this possible? If so, which components do I need to install where? 
>>> Server can run Apache.
>>> 
>>> Cheers,
>>> 
>>> Malte___
>>> 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
>> 
> 
> 
> 
> -- 
> http://www.andregarzia.com All We Do Is Code.
> ___
> 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: Classic CGI on Win

2010-08-09 Thread Andre Garzia
Peter,

The standalone trick will not work on some circunstances. If you don't
have X11 installed on the linux machine (Common for servers), the
standalone will not load due to missing libraries. :-/

PS: This was the case long time ago, need to double check now if it still holds.

Andre

On Mon, Aug 9, 2010 at 10:36 AM, Peter W A Wood  wrote:
> Malte
>
> Thanks to RRobert from Hamburg, if you can do all you want in a standalone, 
> you can do it as a CGI. It is easy to forget that a CGI is just an ordinary 
> program with specific output. His detailed explanation is here - 
> http://forums.runrev.com/phpBB2/viewtopic.php?f=8&t=5160&p=24096&hilit=RRobert#p23142
>
> Also, this may be of interest 
> http://forums.runrev.com/phpBB2/viewtopic.php?f=15&t=4755#p21119
>
> Regards
>
> Peter
>
> On 9 Aug 2010, at 19:19, Malte Pfaff-Brill wrote:
>
>> Hi folks,
>>
>> as we do not yet have a win version of revServer, I need to set up a CGI on 
>> Win Server 2003 (if possible)
>>
>> Requirements are:
>>
>> Needs to work with local postGreSQL DB
>> Needs to work with revXML
>>
>> Is this possible? If so, which components do I need to install where? Server 
>> can run Apache.
>>
>> Cheers,
>>
>> Malte___
>> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: Classic CGI on Win

2010-08-09 Thread Peter W A Wood
Malte

Thanks to RRobert from Hamburg, if you can do all you want in a standalone, you 
can do it as a CGI. It is easy to forget that a CGI is just an ordinary program 
with specific output. His detailed explanation is here - 
http://forums.runrev.com/phpBB2/viewtopic.php?f=8&t=5160&p=24096&hilit=RRobert#p23142
 

Also, this may be of interest 
http://forums.runrev.com/phpBB2/viewtopic.php?f=15&t=4755#p21119

Regards

Peter

On 9 Aug 2010, at 19:19, Malte Pfaff-Brill wrote:

> Hi folks,
> 
> as we do not yet have a win version of revServer, I need to set up a CGI on 
> Win Server 2003 (if possible)
> 
> Requirements are: 
> 
> Needs to work with local postGreSQL DB
> Needs to work with revXML
> 
> Is this possible? If so, which components do I need to install where? Server 
> can run Apache.
> 
> Cheers,
> 
> Malte___
> 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: Classic CGI on Win

2010-08-09 Thread Andre Garzia
Malte,

I think you're in for a wild ride here my friend. I never used CGI on
windows machines but if you can run apache then it should be easier
than trying this kind of stunt with IIS.

Below I will reproduce the steps needed. I haven't tried them I am
just converting the common steps for other languages to Rev. It should
work.

After installing apache, look for httpd.conf in the conf folder and
edit it like this:



After setting the ExecCGI option to the CGI-Bin folder. You need to
set your handlers. Search on httpd.conf for "CGI", you will find a
commented AddHandler entry that you need to uncomment.

  #AddHandler CGI-script .cgi

becomes

  AddHandler CGI-script .cgi

This binds the .cgi extension to a CGI script. After that restart
apache. Copy your Rev engine (3.5) to the CGI-Bin folder. Try it with
a file hello.cgi with the following content:

  #!"C:/Program Files/Apache Software
Foundation/Apache2.2/CGI-bin/revolution.exe" -cs
  on startup
put "Content-type: text/plain" & crlf & crlf
put "hello world!" & crlf
  end startup

Then you call "http://localhost/cgi-bin/hello.cgi";

I have never tested Apache or CGI under windows but that is the
standard recipe. If you manage to get that working you will stumble in
the database connection for it will not work out of the box. You will
need to set the databasedriverspath by hand in the startup handler and
might need to bind revdb.dll there as well.

andre



On Mon, Aug 9, 2010 at 8:19 AM, Malte Pfaff-Brill
 wrote:
>
> Hi folks,
>
> as we do not yet have a win version of revServer, I need to set up a CGI on 
> Win Server 2003 (if possible)
>
> Requirements are:
>
> Needs to work with local postGreSQL DB
> Needs to work with revXML
>
> Is this possible? If so, which components do I need to install where? Server 
> can run Apache.
>
> Cheers,
>
> Malte___
> 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



--
http://www.andregarzia.com All We Do Is Code.
___
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: Classic CGI on Win

2010-08-09 Thread Pierre Sahores
Hum ! ...

Le 9 août 2010 à 13:55, Malte Pfaff-Brill a écrit :

> Merci beaucoup Pierre,
> 
> the crux is I have no control over the OS the server is running. :-/
> 
> Cheers,
> Malte
> ___
> 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
> 

--
Pierre Sahores
mobile : (33) 6 03 95 77 70

www.wrds.com
www.sahores-conseil.com




___
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: Classic CGI on Win

2010-08-09 Thread Malte Pfaff-Brill
Merci beaucoup Pierre,

the crux is I have no control over the OS the server is running. :-/

Cheers,
Malte
___
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: Classic CGI on Win

2010-08-09 Thread Pierre Sahores
Malte,

Richard, Andre and others may help you more directly than me ...

My last experience about using a server side solution on the win platform 
(1998, win NT 4 server, Apache 1.3, PHP + MC + PG) did'nt never work very well. 
Why ? The win NT RAM management was so sad in this config that the server had 
to be rebooted, at least on time per 24 hours...

After that, i always used Linux or OS X (desktop, not server) configs to set up 
all my n-tier apps solutions.

Frankly, you will avoid lots of unwanted problems (security related included) 
if you choose to install your revCGI (or revServer) powered n-tier solution on, 
even, a linux powered N270 subnotebook + external 3.5" 7200 t/mn HD instead of 
on any 720 QM (or more) powered windows box 

Hope this can help.

Best Regards, Pierre


Le 9 août 2010 à 13:19, Malte Pfaff-Brill a écrit :

> Hi folks,
> 
> as we do not yet have a win version of revServer, I need to set up a CGI on 
> Win Server 2003 (if possible)
> 
> Requirements are: 
> 
> Needs to work with local postGreSQL DB
> Needs to work with revXML
> 
> Is this possible? If so, which components do I need to install where? Server 
> can run Apache.
> 
> Cheers,
> 
> Malte___
> 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
> 

--
Pierre Sahores
mobile : (33) 6 03 95 77 70

www.wrds.com
www.sahores-conseil.com




___
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


Classic CGI on Win

2010-08-09 Thread Malte Pfaff-Brill
Hi folks,

as we do not yet have a win version of revServer, I need to set up a CGI on Win 
Server 2003 (if possible)

Requirements are: 

Needs to work with local postGreSQL DB
Needs to work with revXML

Is this possible? If so, which components do I need to install where? Server 
can run Apache.

Cheers,

Malte___
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 CGI and saving time of event in users time

2010-06-23 Thread Jim Sims

On Jun 23, 2010, at 7:20 PM, Andre Garzia wrote:

> Yo Sims,
> 
> If this is coming from a HTML form, you can add a hidden field there and use
> some javascript magic to write the current time there on form submission.

Thanks! I was thinking of the user clicking on a web page button image  but 
that could also be a sneaky submit button. 

Thanks!

sims___
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 CGI and saving time of event in users time

2010-06-23 Thread Andre Garzia
Yo Sims,

If this is coming from a HTML form, you can add a hidden field there and use
some javascript magic to write the current time there on form submission.

:D

On Wed, Jun 23, 2010 at 12:58 PM, jim sims  wrote:

> I'm using a Rev CGI on my server. I am not using iRev, but the older Rev
> CGI.
>
> When a user clicks, asking for a file, I want to save the time of that
> event using the users time. In other words, not the server's location time
> but what the user would see wherever they are.
>
> Am I correct in thinking that the way to do this is to have a preference
> saved for the user telling me what his time is relative to UTC and then
> calculate using the time that would be indicated by the server (using a
> script on the server via the Rev CGI stack)?
>
>
> sims
>
>
>
>
>
> ___
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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


Rev CGI and saving time of event in users time

2010-06-23 Thread jim sims
I'm using a Rev CGI on my server. I am not using iRev, but the older Rev CGI.

When a user clicks, asking for a file, I want to save the time of that event 
using the users time. In other words, not the server's location time but what 
the user would see wherever they are.

Am I correct in thinking that the way to do this is to have a preference saved 
for the user telling me what his time is relative to UTC and then calculate 
using the time that would be indicated by the server (using a script on the 
server via the Rev CGI stack)?


sims





___
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: No-asci chars from the on-rev CGI

2010-05-04 Thread paolo mazza
Thank you. You are right.
Now I realize that from the on-rev CGI (using the put command) i receive a
Mac OS character-set string,
So, when I am in windows I have to use a macToISO() to translate it  into
the ISO 8859-1character set.


On Mon, May 3, 2010 at 6:21 PM, J. Landman Gay

I'm not sure if it will help, but it sounds like you are affected by the
different character sets that Windows and Mac use. Accented characters are
at different locations in the font tables on each OS. You could try using
macToISO() or isoToMac() to convert the characters before sending to the
CGI.

>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
>
> ___
> 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: No-asci chars from the on-rev CGI

2010-05-03 Thread J. Landman Gay

paolo mazza wrote:

I am still  fighting with the NO-ASCI chars.  Even if I encodeBase64  the
data, if I connect to the CGI from a web-plugin using   Windows platform , I
get stange chars.


From exactly the same CGI, and using the same revlet, from MAC i get the

correct chars with accent (i.e. è à ù ) and from windows i get some strange
chars (i.e. ^ати) .

Any clue for a solution?


I'm not sure if it will help, but it sounds like you are affected by the 
different character sets that Windows and Mac use. Accented characters 
are at different locations in the font tables on each OS. You could try 
using macToISO() or isoToMac() to convert the characters before sending 
to the CGI.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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: No-asci chars from the on-rev CGI

2010-05-03 Thread Richmond Mathewson

 Probably time to start using Unicode:

set the useUnicode to true
put uniencode("щати") into RUS
set the unicodeText of fld "PLACEWHERE" to RUS

or encode each of those Cyrillic letters via their Unicode call numbers:

set the unicodeText of fld "PLACEWHERE" to (numToChar(X) & 
numToChar(Z)   and so on


where 'X' and 'Z' are the DECIMAL Unicode call numbers of your 
characters.


On 03/05/2010 18:54, paolo mazza wrote:

I am still  fighting with the NO-ASCI chars.  Even if I encodeBase64  the
data, if I connect to the CGI from a web-plugin using   Windows platform , I
get stange chars.

> From exactly the same CGI, and using the same revlet, from MAC i get the
correct chars with accent (i.e. è à ù ) and from windows i get some strange
chars (i.e. ^ати) .

Any clue for a solution?



On Thu, Apr 15, 2010 at 3:51 PM, Richard Gaskin
wrote:


paolo mazza wrote:

  I am facing a problem sending NO-ASCI chars with the rev CGI ( i. e. put

"щати" ) to a Rev application.

When I receive a string containing chars with accent (i.e. щати) from the

Revolution CGI , I get strange chars.

Example:

put "щати"


I receive:   "^:'"

How can I fix this?


Try running the data through base64Encode when sending, and base64Decode on
the receiving end.



___
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: No-asci chars from the on-rev CGI

2010-05-03 Thread paolo mazza
I am still  fighting with the NO-ASCI chars.  Even if I encodeBase64  the
data, if I connect to the CGI from a web-plugin using   Windows platform , I
get stange chars.

>From exactly the same CGI, and using the same revlet, from MAC i get the
correct chars with accent (i.e. è à ù ) and from windows i get some strange
chars (i.e. ^ати) .

Any clue for a solution?



On Thu, Apr 15, 2010 at 3:51 PM, Richard Gaskin
wrote:

> paolo mazza wrote:
>
>  I am facing a problem sending NO-ASCI chars with the rev CGI ( i. e. put
>> "щати" ) to a Rev application.
>>
>> When I receive a string containing chars with accent (i.e. щати) from the
>>
>> Revolution CGI , I get strange chars.
>>
>> Example:
>>
>> put "щати"
>>
>>
>> I receive:   "^:'"
>>
>> How can I fix this?
>>
>
> Try running the data through base64Encode when sending, and base64Decode on
> the receiving end.
>
> --
>  Richard Gaskin
>  Fourth World
>  Rev training and consulting: http://www.fourthworld.com
>  Webzine for Rev developers: http://www.revjournal.com
>  revJournal blog: http://revjournal.com/blog.irv
>
> ___
> 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: No-asci chars from the on-rev CGI

2010-04-15 Thread paolo mazza
Thank you Richard. I fixed everythingh and now my first application in the
iPhone is running.
Thanks a lot to everybody in this great list !!!
All the best

Paolo Mazza
___
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: No-asci chars from the on-rev CGI

2010-04-15 Thread Richard Gaskin

paolo mazza wrote:


I am facing a problem sending NO-ASCI chars with the rev CGI ( i. e. put
"ùàòè" ) to a Rev application.

When I receive a string containing chars with accent (i.e. ùàòè) from the
Revolution CGI , I get strange chars.

Example:

put "ùàòè"

I receive:   "^:'"

How can I fix this?


Try running the data through base64Encode when sending, and base64Decode 
on the receiving end.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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


No-asci chars from the on-rev CGI

2010-04-15 Thread paolo mazza
I am facing a problem sending NO-ASCI chars with the rev CGI ( i. e. put
"ùàòè" ) to a Rev application.

When I receive a string containing chars with accent (i.e. ùàòè) from the
Revolution CGI , I get strange chars.

Example:

put "ùàòè"

I receive:   "^:'"

How can I fix this?

Thanks a lot

Paolo Mazza
___
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: Old CGI engine and POST

2010-03-25 Thread Andre Garzia
Richard,

it is a CGI context, the CGI engine does not load libURL by default.

Cheers
andre

On Thu, Mar 25, 2010 at 12:50 PM, Richard Gaskin  wrote:

> Klaus Major wrote:
>
> > Bonjour Jacqueline,
> >
> >> Klaus Major wrote:
> >>> Hi all,
> >>> maybe someone happens know this?
> >>> We are using an old Rev engine as a CGI engine on our server.
> >>> Is it possible to "POST" something to an url with this old CGI
> >>> engine?
> >> If you mean, the cgi needs to catch POST requests and process them
> >> then yes, I catch those all the time. If you mean the cgi needs to
> >> *generate* POST requests then you'll probably need to do what
> >> Bjornke said.
> >
> > the latter one, thanks :-)
>
> I think I missed something:  what's wrong with Rev's post command?
>
> --
>  Richard Gaskin
>  Fourth World
>  Rev training and consulting: http://www.fourthworld.com
>  Webzine for Rev developers: http://www.revjournal.com
>  revJournal blog: http://revjournal.com/blog.irv
>
> ___
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: Old CGI engine and POST

2010-03-25 Thread Richard Gaskin

Klaus Major wrote:

> Bonjour Jacqueline,
>
>> Klaus Major wrote:
>>> Hi all,
>>> maybe someone happens know this?
>>> We are using an old Rev engine as a CGI engine on our server.
>>> Is it possible to "POST" something to an url with this old CGI
>>> engine?
>> If you mean, the cgi needs to catch POST requests and process them
>> then yes, I catch those all the time. If you mean the cgi needs to
>> *generate* POST requests then you'll probably need to do what
>> Bjornke said.
>
> the latter one, thanks :-)

I think I missed something:  what's wrong with Rev's post command?

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: Old CGI engine and POST

2010-03-25 Thread Klaus Major
Bonjour Jacqueline,

> Klaus Major wrote:
>> Hi all,
>> maybe someone happens know this?
>> We are using an old Rev engine as a CGI engine on our server.
>> Is it possible to "POST" something to an url with this old CGI engine?
> If you mean, the cgi needs to catch POST requests and process them then yes, 
> I catch those all the time. If you mean the cgi needs to *generate* POST 
> requests then you'll probably need to do what Bjornke said.

the latter one, thanks :-)

We will use probably CURL, since we have a Mac server.

> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com

___
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: Old CGI engine and POST

2010-03-25 Thread J. Landman Gay

Klaus Major wrote:

Hi all,

maybe someone happens know this?

We are using an old Rev engine as a CGI engine on our server.
Is it possible to "POST" something to an url with this old CGI engine?


If you mean, the cgi needs to catch POST requests and process them then 
yes, I catch those all the time. If you mean the cgi needs to *generate* 
POST requests then you'll probably need to do what Bjornke said.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
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: Old CGI engine and POST

2010-03-25 Thread Klaus Major
Hi Andre,

> Klaus,
> 
> I think it is easier to shell() to CURL than to load libURL on old CGI
> engines. CURL can POST, GET and pretty much anything you want.

ah, yes, I see!

Good idea, since we have a Mac server (an old eMac, but what the heck :-)
CURL shoould already avialble on that machine.

Thanks!

> Cheers
> andre

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com

___
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: Old CGI engine and POST

2010-03-25 Thread Andre Garzia
Klaus,

I think it is easier to shell() to CURL than to load libURL on old CGI
engines.

CURL can POST, GET and pretty much anything you want.

Cheers
andre

On Thu, Mar 25, 2010 at 11:33 AM, Klaus Major wrote:

> Hi Björnke,
>
> > should work, but you need to load liburl yourself, as it's (for obvious
> reasons) not included directly in the engine. Note that some colocation and
> shared servers will not allow any outgoing sockets.
>
> thanks for the fast answer!
> Since this is our server, there won't be any problems I think, we'll check
> this :-)
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> kl...@major.on-rev.com
>
> ___
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: Old CGI engine and POST

2010-03-25 Thread Klaus Major
Hi Björnke,

> should work, but you need to load liburl yourself, as it's (for obvious 
> reasons) not included directly in the engine. Note that some colocation and 
> shared servers will not allow any outgoing sockets.

thanks for the fast answer!
Since this is our server, there won't be any problems I think, we'll check this 
:-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com

___
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: Old CGI engine and POST

2010-03-25 Thread Björnke von Gierke
should work, but you need to load liburl yourself, as it's (for obvious 
reasons) not included directly in the engine. Note that some colocation and 
shared servers will not allow any outgoing sockets.

On 25 Mar 2010, at 15:22, Klaus Major wrote:

> Hi all,
> 
> maybe someone happens know this?
> 
> We are using an old Rev engine as a CGI engine on our server.
> Is it possible to "POST" something to an url with this old CGI engine?
> Know what I mean?
> 
> I do not have the chance to test this in the moment.
> 
> Thanks for all answers :-)
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> http://www.major-k.de
> kl...@major.on-rev.com
> 
> ___
> 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


Old CGI engine and POST

2010-03-25 Thread Klaus Major
Hi all,

maybe someone happens know this?

We are using an old Rev engine as a CGI engine on our server.
Is it possible to "POST" something to an url with this old CGI engine?
Know what I mean?

I do not have the chance to test this in the moment.

Thanks for all answers :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com

___
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: Can a Rev cgi "accept connections"?

2010-01-18 Thread Jim Ault
Cause, after studying about sockets using Rev's "chat server/client"  
sample
stack (thank you to Bill Vlahos for pointing it out), I'm now trying  
to get
a Rev cgi script to act as the server (the script will  be in my on- 
rev

Rev-cgi folder).

Unfortunately, what works locally isn't at all on the web.



Wouldn't you have to use Fast CGI for that?

Normally a CGI script only runs as a single instance when called, and  
then immediately quits.  If called again, it relaunches, but is a  
separate instance with no common variables unless a programmer does  
something to create "session variables".


In PHP, the use of globals is a serious security hazard since these  
areas of memory can be hijacked by inventive bots and programmers and  
cause havoc, such as denial of service attacks and spambots.


Further, the customer of a hosting company does not get to change the  
firewall settings (TCP and UDP) so you would have to use the existing  
port configuration.


Locally, if you changed the httpd.conf file to have Apache listen at  
ports other than just port 80, then rebooted it, Apache could get  
packets on ports such as 1987.
A hosting company, even the one in Texas that is used by On-Rev,  
probably would not allow a request to reconfigure your account.  This  
is an area I know little about for General hosting, but I do have  
several Rev apps running in a Private data center where firewall  
requests are handled by the tech group and have to get approval.  I  
write connection software for the company that owns the data center,  
otherwise I would have no chance of submitting work orders to make  
changes.


I would suggest you contact the On-Rev hosting company and ask how  
they are setup to allow chat server programs to operate on their  
system.  It could be that cPanel has a tool for doing that on a port  
that is already configured.  If you are not familiar with cPanel (as I  
am not).


You should Google "cPanel chat server"
and do some reading to get to know exactly what you want, then  
hopefully it is possible.  It would be cool if it were easy, and then  
you could let us know a few details when you are up and running.




Jim Ault
Las Vegas


On Jan 18, 2010, at 12:54 AM, Nicolas Cueto wrote:


Why do I ask?

Cause, after studying about sockets using Rev's "chat server/client"  
sample
stack (thank you to Bill Vlahos for pointing it out), I'm now trying  
to get
a Rev cgi script to act as the server (the script will  be in my on- 
rev

Rev-cgi folder).

Unfortunately, what works locally isn't at all on the web.

If it helps, here's the Rev cgi server-script and a snippet of the  
client

stack:


///   Rev.cgi server  
script


#!MyRevEngine -ui
on startup
 accept connections on port 1987 with message chatConnected
end startup

on chatConnected s   -- s contains address and port of connecting  
computer

 read from socket s for 1 line
 put line 1 of it into tSocket
 put "Hello world" && tSocket into message
 write message to socket tSocket
 close socket tSocket
end chatConnected


/////// client stack ///
on mouseUp
 open socket to "myurl.com/cgi-bin/server.cgi:1987" with message
"chatConnected"
end mouseUp

on chatConnected s
  put s into lChatSocket
  read from socket s with message chatReceived
end chatConnected

on chatReceived s,data
  put data & return after field "responses"
  read from socket s with message chatReceived
end chatReceived

//

Apologies if I'm asking for excessive hand-holding.


___
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: Can a Rev cgi "accept connections"?

2010-01-18 Thread Nicolas Cueto
> As far as RunRev is concerned, it is possible, but your web host may not 
> allow it.

Thanks Mark.

My webhost is onrev. So, I'd think they'd allow it.

--
Nicolas Cueto
___
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: Can a Rev cgi "accept connections"?

2010-01-18 Thread Mark Schonewille

Hi Nicolas,

As far as RunRev is concerned, it is possible, but your web host may  
not allow it.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

TwistAWord supports Haiti. Buy a license for this word game at http://www.twistaword.net 
 and support the earthquake victims.


Op 18 jan 2010, om 09:54 heeft Nicolas Cueto het volgende geschreven:


Why do I ask?

Cause, after studying about sockets using Rev's "chat server/client"  
sample
stack (thank you to Bill Vlahos for pointing it out), I'm now trying  
to get
a Rev cgi script to act as the server (the script will  be in my on- 
rev

Rev-cgi folder).

Unfortunately, what works locally isn't at all on the web.

If it helps, here's the Rev cgi server-script and a snippet of the  
client

stack:


///   Rev.cgi server  
script


#!MyRevEngine -ui
on startup
 accept connections on port 1987 with message chatConnected
end startup

on chatConnected s   -- s contains address and port of connecting  
computer

 read from socket s for 1 line
 put line 1 of it into tSocket
 put "Hello world" && tSocket into message
 write message to socket tSocket
 close socket tSocket
end chatConnected


/// client stack ///////
on mouseUp
 open socket to "myurl.com/cgi-bin/server.cgi:1987" with message
"chatConnected"
end mouseUp

on chatConnected s
  put s into lChatSocket
  read from socket s with message chatReceived
end chatConnected

on chatReceived s,data
  put data & return after field "responses"
  read from socket s with message chatReceived
end chatReceived

//

Apologies if I'm asking for excessive hand-holding.

Thanks.

--
Nicolas Cueto


___
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


Can a Rev cgi "accept connections"?

2010-01-18 Thread Nicolas Cueto
Why do I ask?

Cause, after studying about sockets using Rev's "chat server/client" sample
stack (thank you to Bill Vlahos for pointing it out), I'm now trying to get
a Rev cgi script to act as the server (the script will  be in my on-rev
Rev-cgi folder).

Unfortunately, what works locally isn't at all on the web.

If it helps, here's the Rev cgi server-script and a snippet of the client
stack:


///   Rev.cgi server script

#!MyRevEngine -ui
on startup
  accept connections on port 1987 with message chatConnected
end startup

on chatConnected s   -- s contains address and port of connecting computer
  read from socket s for 1 line
  put line 1 of it into tSocket
  put "Hello world" && tSocket into message
  write message to socket tSocket
  close socket tSocket
end chatConnected


/// client stack ///////
on mouseUp
  open socket to "myurl.com/cgi-bin/server.cgi:1987" with message
"chatConnected"
end mouseUp

on chatConnected s
   put s into lChatSocket
   read from socket s with message chatReceived
end chatConnected

on chatReceived s,data
   put data & return after field "responses"
   read from socket s with message chatReceived
end chatReceived

//

Apologies if I'm asking for excessive hand-holding.

Thanks.

--
Nicolas Cueto
___
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: 4.0 engine as an executable shell/cgi

2009-12-23 Thread Richard Gaskin

Bernard Devlin wrote:

But I thought it was important to raise this issue about the changes
to the way Rev works in case other people were thinking to use Rev 4
in a cgi environment.


Agreed.  I understand RunRev Ltd. is on holiday break at the moment, but 
I'm hoping when they get back they'll be in a position to move forward 
with the new server thang.



It was in this context that I wondered about the availability of the
Apache module from on-Rev.  Clearly it's been in use for months now,
but I don't remember seeing that it been made publicly available.


I don't think it's a module per se since it isn't stay-resident, which 
is a good thing IMO since most of us use shared hosting services and 
it's not easy getting admins to install a module their server for a 
single account.


Behaviorally, it's very much like a CGI configured with .htaccess to run 
files ending in .irev through an enhanced merge function.  At least 
that's how I've been able to approximate the behavior, as with the 
templates driving the blog at revJournal.com.  While missing some of the 
syntactic sugar on-rev users enjoy (and without the great benefit of 
live debugging), it's been delightfully simple to drop RevTalk function 
calls in standard HTML pages and have them fill in the blanks from calls 
to a library stack.  Merge is a beautiful thing.


But as for the new server component, I'm not really sure what exactly it 
is.  I'm told it's not a CGI, and it doesn't behave like a module.


Whatever it is, I'm looking forward to getting my hands on it. :)

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: 4.0 engine as an executable shell/cgi

2009-12-23 Thread Bernard Devlin
Hi Richard

On Wed, Dec 23, 2009 at 12:52 PM, Richard Gaskin
 wrote:
> In the meantime I've continued using the v3.5 engine as a CGI, and given
> that most of the v4 changes affect things that don't come into play in a
> faceless mode I would imagine v3.5 would be suitable for most command
> line-driven projects.
>
> Is there something specific to v4 your project needs which would preclude
> using the v3.5 runtime engine?  Maybe we can brainstorm a workaround to get
> you going.
>
> --
>  Richard Gaskin

I thought I'd read it in the log text files, but I wasn't at a
computer with 4.0 installed when I wrote that.

Thanks (as always) for your offer of help.  Much appreciated.
However, I found out that Rev 4.0 didn't work as a shell processor
when I tried running some of my Rev shell scripts with 4.0.  As I had
3.5 installed on that computer, I just switched to using that instead.

But I thought it was important to raise this issue about the changes
to the way Rev works in case other people were thinking to use Rev 4
in a cgi environment. In another thread yesterday Viktoras was asking
about virtual servers hosts on the internet where he could install
Rev.

It was in this context that I wondered about the availability of the
Apache module from on-Rev.  Clearly it's been in use for months now,
but I don't remember seeing that it been made publicly available.

Regards,
Bernard
___
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: 4.0 engine as an executable shell/cgi

2009-12-23 Thread Richard Gaskin

Bernard wrote:


The 4.0 engine does not work from a command line at all i.e. as a
shell script processor (at least I can get no output from it).
Somewhere (maybe it was in the text file about the engine) it states
that this new lack of functionality was a side-effect of enabling the
engine to produce revlets.  Seems like a strange explanation, but
there you go...

It means anyone who does use that kind of functionality should keep
old copies of Rev around.  And with Rev version 4+ it will no longer
be possible to use Rev as a cgi program.  Has the apache module been
released so that Rev can be used on one's own server?


The note was in the v4.0 Engine Change Log:

--

Standalone Building
~~~

The method by which standalone building is done has changed in this 
release. Standalones are now built in such a way that they behave much 
better as executable files on all three platforms. In particular, 
Revolution standalone executables can now:

  - be digitally signed using the various OS tools on Windows and Mac OS X
  - have arbitrarily sized document and application ICO files used on 
Windows

  - have their resources edited on Windows
  - be used with various third-party executable processing tools (such 
as compressors, trial run makers, network key wrappers etc.)


In order to achieve this, it has been necessary to implement the core 
operation of standalone building in the (ide) engine. This means that 
the standalone engine provided in the distribution is no longer 
generally useful as anything other than the shell which is used to form 
the standalone. In particular, it cannot be used to build standalones 
using the method previously used nor can it be used as a generic command 
line engine.

--


Kevin has stated here his intention of providing a free engine for CGI 
use for v4 forward as has always been the case, but given the complexity 
of the RevWeb plugin I can understand the delay in delivering this.


In the meantime I've continued using the v3.5 engine as a CGI, and given 
that most of the v4 changes affect things that don't come into play in a 
faceless mode I would imagine v3.5 would be suitable for most command 
line-driven projects.


Is there something specific to v4 your project needs which would 
preclude using the v3.5 runtime engine?  Maybe we can brainstorm a 
workaround to get you going.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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


4.0 engine as an executable shell/cgi

2009-12-23 Thread Bernard Devlin
The 4.0 engine does not work from a command line at all i.e. as a
shell script processor (at least I can get no output from it).
Somewhere (maybe it was in the text file about the engine) it states
that this new lack of functionality was a side-effect of enabling the
engine to produce revlets.  Seems like a strange explanation, but
there you go...

It means anyone who does use that kind of functionality should keep
old copies of Rev around.  And with Rev version 4+ it will no longer
be possible to use Rev as a cgi program.  Has the apache module been
released so that Rev can be used on one's own server?

Bernard
___
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 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 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 

> 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


Rev compress, cgi, php, zip

2009-12-11 Thread Jim Ault
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


Re: about Rev cgi and MySQL

2009-11-03 Thread Rick Harrison

Hi,

There are some other compromising approaches to consider as well.

Don't have the record open long at all in your processing.
If it is a form, don't use the database field for your entry, use
a variable for the entry, so the record isn't actually open.
Once the user actually submits the information, then open
your record, copy the information from the variables into
the record, and perform your update.  In this way you will
use the least amount of time for your record locking technique.

Use a record locking strategy where you can use a
Date/Time stamp along with a session ID, or IP-Address,
when the record was opened for updating.
If the record isn't updated within a specified amount of time,
let it time out, send a message to the user that the update
timed out, and direct them to do it over. Close the record
so someone else can update it.

If someone else is trying to update the same record at the same
time, have the program wait for a couple of seconds and try
the update again. (You can loop this for several tries before
giving up.  If it still fails at this point you can send that user a
record busy message, ask them to wait, or ask them to try
again in a minute, or to cancel their update for later.)

I hope this helps!

Rick

On Nov 3, 2009, at 8:28 AM, Jan Schenkel wrote:

This problem isn't unique to cgi-scripting - you have the same  
issues with a desktop application where concurrent updates need to  
be handled.


There are 3 approaches to concurrent changes:
- pessimistic locking (no one can change the record while somebody  
has it locked)
- optimistic locking (essentially no locking, whoever makes the last  
update wins)
- optimistic locking + versioning (again no locking, byut we use a  
version number to see if anyone else made a change)

...
Hope this helped,

Jan Schenkel.
=
Quartam Reports & PDF Library for Revolution
<http://www.quartam.com>

=
"As we grow older, we grow both wiser and more foolish at the same  
time."  (La Rochefoucauld)




___
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: about Rev cgi and MySQL

2009-11-03 Thread Jan Schenkel
This problem isn't unique to cgi-scripting - you have the same issues with a 
desktop application where concurrent updates need to be handled.

There are 3 approaches to concurrent changes:
- pessimistic locking (no one can change the record while somebody has it 
locked)
- optimistic locking (essentially no locking, whoever makes the last update 
wins)
- optimistic locking + versioning (again no locking, byut we use a version 
number to see if anyone else made a change)

The first approach, pessimistic locking, doesn't scale very well and you risk 
locking out users when someone opens a record and goes out for lunch without 
closing the record.
The second approach, optimistic locking without versioning, is just not an 
option in a serious business application; but it may fit the bill under other 
circumstances as it's the quickest.

Which leaves us with the third option, optimistic locking + versioning. In this 
scenario, you add a 'version' column to each table, and when you update a 
record, you only update it if the version number is the same as when you read 
it.
So when opening the record, you'd have:
  SELECT * FROM Customer WHERE cust_Id = 12345
Then you copy the version number for later use:
  put revDatabaseColumnNamed(tResultSetId, "cust_Version") into tVersion
Let's assume for a second that the version number is 8. When you want to save 
the changes, you would use a query like:
  UPDATE Customer SET cust_Name = 'Jan', cust_Version = cust_Version + 1 WHERE 
cust_Id = 12345 AND cust_Version = 8

When you use the revExecuteSQL command, the result contains the number of 
records affected by your UPDATE query. If the result for the above query is 0, 
then no records were updated, which means that someone else incremented the 
version number.
At this point, you could read the new version of the record and provide some 
sort of 'merge' functionality where the user picks the right fields.

Important note: when using a 'version' field, make sure to extract non 
user-entry data our of the table ionto a separate table. For instance, if 
there's a field cust_Balance to hold the current balance of the cusztomer, you 
should move that out of the Customer table, so that the rest of your business 
logic can update that without worrying about a version number.

Hope this helped,

Jan Schenkel.
=
Quartam Reports & PDF Library for Revolution
<http://www.quartam.com>

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)


--- On Mon, 11/2/09, Nicolas Cueto  wrote:

> From: Nicolas Cueto 
> Subject: about Rev cgi and MySQL
> To: "How to use Revolution" 
> Date: Monday, November 2, 2009, 3:47 PM
> Just curious about something. But I
> don't know the technical
> vocabulary, so please forgive this verbose (and
> confusing?)
> explanation.
> 
> I think it essentially has do with user queues.
> 
> 
> I have a Rev.cgi script on the On-Rev server that works in
> this 3-step sequence:
> 
> (STEP 1) uses SELECT to retrieve data from a MySQL table
> 
> (STEP 2) does stuff based on that retrieved data in order
> to alter it
> 
> (STEP 3) uses UPDATE to put that now-altered data back into
> the same MySQL table
> 
> 
> My question is about data mishaps that could happen during
> STEP 2 --
> specially if it happens to take a long time (a few
> seconds?) -- should
> it happen to come about that a new user calls a Rev.cgi
> which is still
> working on a previous user's call.
> 
> 
> The chaos sequence I have in mind is this:
> 
> USER 1 : STEP 1 --> Rev.cgi retrieves data from SQL
> table at time X ( = tData)
> USER 1 : STEP 2 --> Rev.cgi works with tData to make
> tData_User1 (but
> no UPDATE yet)
> 
> ... but during USER 1 : STEP 2 ...
> 
> USER 2 : STEP 1 -->   Rev.cgi retrieves
> data from SQL table at time
> X+1 (still = tData)
> USER 2 : STEP 2 --> Rev.cgi works on tData to make
> tData_User2 (but no
> UPDATE yet)
> USER 1 : STEP 3 --> updates SQL table with tData.User1
> USER 2 : STEP 3 --> updates SQL table with tData.User2
> 
> In this chaos scenario of mine -- if indeed this is how
> things
> actually happen between servers, which I'm hoping it's not
> -- the
> problem is the state of tData at USER 2 : STEP2. It should
> not be
> tData but actually tData_User1.
> 
> 
> So, is there something in-built in SQL or Rev.cgi that
> handles queues
> in such a way that prevents this kind of queue chaos,
> whether it's 2
> or 2 million users calling in at the "same" time
> 
> Or do I have to take care of this myself somehow, by, say,
> proper scripting?
> 
> Thank you.
> 
> --
> Nicolas Cueto
>

about Rev cgi and MySQL

2009-11-02 Thread Nicolas Cueto
Just curious about something. But I don't know the technical
vocabulary, so please forgive this verbose (and confusing?)
explanation.

I think it essentially has do with user queues.


I have a Rev.cgi script on the On-Rev server that works in this 3-step sequence:

(STEP 1) uses SELECT to retrieve data from a MySQL table

(STEP 2) does stuff based on that retrieved data in order to alter it

(STEP 3) uses UPDATE to put that now-altered data back into the same MySQL table


My question is about data mishaps that could happen during STEP 2 --
specially if it happens to take a long time (a few seconds?) -- should
it happen to come about that a new user calls a Rev.cgi which is still
working on a previous user's call.


The chaos sequence I have in mind is this:

USER 1 : STEP 1 --> Rev.cgi retrieves data from SQL table at time X ( = tData)
USER 1 : STEP 2 --> Rev.cgi works with tData to make tData_User1 (but
no UPDATE yet)

... but during USER 1 : STEP 2 ...

USER 2 : STEP 1 -->   Rev.cgi retrieves data from SQL table at time
X+1 (still = tData)
USER 2 : STEP 2 --> Rev.cgi works on tData to make tData_User2 (but no
UPDATE yet)
USER 1 : STEP 3 --> updates SQL table with tData.User1
USER 2 : STEP 3 --> updates SQL table with tData.User2

In this chaos scenario of mine -- if indeed this is how things
actually happen between servers, which I'm hoping it's not -- the
problem is the state of tData at USER 2 : STEP2. It should not be
tData but actually tData_User1.


So, is there something in-built in SQL or Rev.cgi that handles queues
in such a way that prevents this kind of queue chaos, whether it's 2
or 2 million users calling in at the "same" time

Or do I have to take care of this myself somehow, by, say, proper scripting?

Thank you.

--
Nicolas Cueto
___
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: Irev; Rev Cgi; stack as dBase: runs in iFrame in Word Press

2009-11-02 Thread J. Landman Gay

Sivakatirswami wrote:


The "chain" of elements in the framework are interesting, as we use

-- an iFrame
-- Calls a .irev page
-- .irev page calls a rev-cgi
-- rev-cgi "starts using" a stack
-- stack function digs for and returns the content
-- results are posted back to word press.

The thing of it is... it's so easy! and so fast... 


I've put up some instructions on how to do something similar here:

<http://jacque.on-rev.com/zygodemo/getkey.irev>

This shows how to use an old-style CGI that is integrated into an iRev 
page. It is, for now, the only way I could see to "start using" other 
stacks. And you're right, it's pretty easy.


There is also a link on the sidebar on how to use more than one revlet 
on a single page, if anyone is interested. Look for "Dual Revlets".


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
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


Irev; Rev Cgi; stack as dBase: runs in iFrame in Word Press

2009-11-02 Thread Sivakatirswami
Thanks to a tip from Andre I have managed to use runRev in a word press 
blog. he says a revlet will also run too...I usually don't contribute 
much here because I feel I'm a "baby" compared to all the wizards ... 
but perhaps this will be useful to  those interested in incorporating 
runRev in PHP CMS frameworks. In this case a Word Press mu blog.


http://himalayanacademy.com/blog/taka/2009/11/02/words-to-ponder/

The "chain" of elements in the framework are interesting, as we use

-- an iFrame
-- Calls a .irev page
-- .irev page calls a rev-cgi
-- rev-cgi "starts using" a stack
-- stack function digs for and returns the content
-- results are posted back to word press.

The thing of it is... it's so easy! and so fast... Total lines of code?

22? (spread over three different files and don't forget a 7MB stack is 
loaded on every instance...but there is no lag time)


with one or two caveats.

In case any one is interested here is the code:

Word Press Post
(# space and breaks at the beginning to give a little breathing room 
above the iFrame below the post title)


    

   

## the css is needed to eliminate the border. iFrames will always 
"borderize" so just set the color of the border to the color of your 
background and it effectively disappears.
# Assumes you have the wp plug in that allows for pasting html into the 
blog and this is set to "allow"



RandomWord.irev # will be displayed into your iFrame, I suspect this 
could be a page that contains a revlet...


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>


   

   Get
   Random Word
   
   

   background-repeat: no-repeat;">

put url 
"http://www.himalayanacademy.com/cgi-bin/getRandomLexiconWord.cgi"; into 
tWordOfTheDay

set the itemdel to "|"
put item 1 of tWordOfTheDay into tWord
put item 2 of tWordOfTheDay into tDefinition

?>

:
  





getRandomLexiconWord.cgi

# it would be nice to be able to call stacks directly with the iRev 
engine and
# I think that is on the roster of future for features but for now you 
need to

# do a GET of a a rev-cgi that Starts Using a stack

#!/opt/web/bin/revolution -ui

on startup
   start using stack "../public_html/resources/lexicon/lexicon.rev"
   put getRandomWord() into buffer
 put "Content-Type: text/plain" & cr
 put "Content-Length:" && the length of buffer & cr & cr
 put buffer
end startup

in the stack "lexicon.rev" (a 7 MB stack with about 3500 cards)

I have this function in the stack itself.

function getRandomWord
  put (the number of cards of stack "Lexicon") into tCards
  put random(tCards) into tWord
  put (fld "word" of card  tWord of stack "Lexicon") & "|"& \
  (fld "definition" of card tWord of stack "Lexicon") into tOutput
  return tOutput
end getRandomWord

# Caveat on calling functions in stacks using rev-cgi: a rev.cgi has no 
stack context. There fore you need to declare explicitely the stack 
reference to any objects in your stack. If you are working on the 
desktop in the IDE of course you don't need this and then when you post 
the thing to the web it doesn['t work.. .I had gone thru this a few 
years  back but for got about it  and it was until I reviewed some old 
function in other web stack that I realize again that you must do this:


put (the number of cards) into tCards

# works in the desktop in an IDE or standalone; fails when invoked by cgi

# this is required, for it to work when call by a CGI even though the 
function is in the stack "Lexicon":


put (the number of cards of stack "Lexicon")  into tCards

Again: total lines of runRev code (not including html)

22















___
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: a php relay to either rev cgi or onrev

2009-07-28 Thread Pierre Sahores

Perhaps usefull about the same subject :



Pierre

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


Le 28 juil. 09 à 09:41, Pierre Sahores a écrit :


Hi Friends,

Nicolas,

You just need to insert a simple line of javascript in your "irev"  
script to call a "php" piece of code from it.


About a working example see :  where the reCAPTCHA part relies on 3 simple php sniplets and the  
rest of the page on irev.


In calling from a simple js snipplet directly inserted in your  
revTalk code the first php sniplet, you go outside of the rev loop  
of your process ;
Then, the first php sniplet call the main php function (second php  
sniplet) you need to handle and have the return catched-back as your  
needed irev readable $_vars
At this point, and it's up to you..., you can have a thirst php  
sniplet called from the second one, etc..., as long as you need to  
bind more php libs functions to the php part of your process.



Feel free to adapt the reCAPTCHA process working example as a  
starter point :



the irev form :







Nom *



Entreprise *
id="entreprise">



Activité *
id="activite">



Adresse
id="adresse">



Ville



Code postal
id="codepostal">



Email *

 

Téléphone *
id="telephone">



Objet *


Choisir dans la liste
lots  
inédits pour sites de jeux en ligne
lots inédits pour sites à vocation commerciale
lots inédits  
pour sites d'information
lots  
inédits pour sites d'information locale
lots  
inédits pour sites pédagogiques
lots inédits pour  
presse de jeux
lots inédits pour  
presse gratuite
lots inédits  
pour presse de loisirs
lots inédits  
pour presse généraliste
lots inédits pour  
presse locale

autre demande

 

Détail





Re: a php relay to either rev cgi or onrev

2009-07-28 Thread Pierre Sahores

Interesting. I did'nt know about this. Thanks for the input, Richard

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


Le 28 juil. 09 à 15:02, Richard Gaskin a écrit :



This discussion has taken some useful and enlightening turns, but  
has anyone yet pinned down the specific recipe for the root problem  
which started this, in which it seems that Rev seems unable to get  
POST data in non-English/non-ISO8959-1 languages?


Is there a but report filed against this?

--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
___
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: a php relay to either rev cgi or onrev

2009-07-28 Thread Richard Gaskin


This discussion has taken some useful and enlightening turns, but has 
anyone yet pinned down the specific recipe for the root problem which 
started this, in which it seems that Rev seems unable to get POST data 
in non-English/non-ISO8959-1 languages?


Is there a but report filed against this?

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
___
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: a php relay to either rev cgi or onrev

2009-07-28 Thread Pierre Sahores

Nicolas,

My mistake : Please read :



instead of 

on the following mail
--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


Le 28 juil. 09 à 14:17, Pierre Sahores a écrit :


Nicolas,



Thank you Pierre, but I do not understand your example.

Where is the " line somewhere?

Very confused...

--
Nicolas Cueto

Le 28 juil. 09 à 09:41, Pierre Sahores a écrit :



Hi Friends,

Nicolas,

You just need to insert a simple line of javascript in your "irev"  
script to call a "php" piece of code from it.


About a working example see :  where the reCAPTCHA part relies on 3 simple php sniplets and the  
rest of the page on irev.


In calling from a simple js snipplet directly inserted in your  
revTalk code the first php sniplet, you go outside of the rev loop  
of your process ;
Then, the first php sniplet call the main php function (second php  
sniplet) you need to handle and have the return catched-back as  
your needed irev readable $_vars
At this point, and it's up to you..., you can have a thirst php  
sniplet called from the second one, etc..., as long as you need to  
bind more php libs functions to the php part of your process.



Feel free to adapt the reCAPTCHA process working example as a  
starter point :



the irev form :



As usual, the  tag comes after the  tag of  
the page :












Nom *



Entreprise *
id="entreprise">



Activité *
id="activite">



Adresse
id="adresse">



Ville
td>



Code postal
id="codepostal">



Email *
td>

 

Téléphone *
id="telephone">



Objet *


Choisir dans la liste
lots  
inédits pour sites de jeux en ligne
lots inédits pour sites à vocation commerciale
lots inédits  
pour sites d'information
lots  
inédits pour sites d'information locale
lots  
inédits pour sites pédagogiques
lots inédits pour  
presse de jeux
lots inédits pour  
presse gratuite
lots inédits  
pour presse de loisirs
lots inédits  
pour presse généraliste
lots inédits pour  
presse locale

autre demande

 

Détail





Re: a php relay to either rev cgi or onrev

2009-07-28 Thread Pierre Sahores

Nicolas,



Thank you Pierre, but I do not understand your example.

Where is the " line somewhere?

Very confused...

--
Nicolas Cueto

Le 28 juil. 09 à 09:41, Pierre Sahores a écrit :



Hi Friends,

Nicolas,

You just need to insert a simple line of javascript in your "irev"  
script to call a "php" piece of code from it.


About a working example see :  where the reCAPTCHA part relies on 3 simple php sniplets and the  
rest of the page on irev.


In calling from a simple js snipplet directly inserted in your  
revTalk code the first php sniplet, you go outside of the rev loop  
of your process ;
Then, the first php sniplet call the main php function (second php  
sniplet) you need to handle and have the return catched-back as your  
needed irev readable $_vars
At this point, and it's up to you..., you can have a thirst php  
sniplet called from the second one, etc..., as long as you need to  
bind more php libs functions to the php part of your process.



Feel free to adapt the reCAPTCHA process working example as a  
starter point :



the irev form :



As usual, the  tag comes after the  tag of the  
page :











Nom *



Entreprise *
id="entreprise">



Activité *
id="activite">



Adresse
id="adresse">



Ville



Code postal
id="codepostal">



Email *

 

Téléphone *
id="telephone">



Objet *


Choisir dans la liste
lots  
inédits pour sites de jeux en ligne
lots inédits pour sites à vocation commerciale
lots inédits  
pour sites d'information
lots  
inédits pour sites d'information locale
lots  
inédits pour sites pédagogiques
lots inédits pour  
presse de jeux
lots inédits pour  
presse gratuite
lots inédits  
pour presse de loisirs
lots inédits  
pour presse généraliste
lots inédits pour  
presse locale

autre demande

 

Détail





Re: a php relay to either rev cgi or onrev

2009-07-28 Thread Nicolas Cueto
Thank you Pierre, but I do not understand your example.

Where is the " line somewhere?

Very confused...

--
Nicolas Cueto
___
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: a php relay to either rev cgi or onrev

2009-07-28 Thread Pierre Sahores
POST[nom] & ",Votre demande  
d'information nous est bien parvenue." && \
"Elle sera examinée pour suites à donner sous 48h/ 
jours ouvrables.Bien cordialement," & \
"Pierre-Jean Sahoresresponsable de  
publication",$_server[http_referer]) & "fieldset>" & \

""
else
return "" & \
	 			sc_info_alert2("Merci de raffraichir et de compléter le  
challenge" && quote & "reCAPTCHA" & quote && \

"avant de poursuivre.") & 
"" & \
""
end if
end if
end sc_contact_report



Hope this can help you to setup your irev driven php process

Kind Regards,

Pierre

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


Le 28 juil. 09 à 07:59, Bernard Devlin a écrit :


Years ago Pierre Sahores built an application server based on Rev.  He
used Apache/PHP as the front end, then used socket connections between
PHP and Rev so that a long-running Rev process could interact with
databases, and return the results via PHP to Apache.

There is a lot to recommend in his design.  He has a tutorial (in
french and english) here:
http://www2.sahores-conseil.com/insead/index_en.html

I can imagine you may not need the whole infrastructure he had in
mind, but getting the Apache/PHP/Rev stuff to work sounds like it
might be what you want, and from what I remember when I followed his
tutorial a couple of years ago, it was all straightforward.

Bernard

On Tue, Jul 28, 2009 at 4:07 AM, Nicolas Cueto  
wrote:

After much testing and frustation, I've discovered that the on-rev
server is unable to read the $_POST array when sent by WAP/WML-based
Japanese cellphones to an .irev script.

As a workaround, I've make a .php script that can read in $_POST. The
next step is using php to forward the $_POST data to an .irev or
rev-cgi script -- assuming of course that such a thing is possible.
But, I really want to avoid having to learn (any more!) php, so am
instead posting this somewhat off-topic request for help.

Has someone tried to use php to relay data to .irev/rev-cgi?

Thanks.

--
Nicolas Cueto
___
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




___
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: a php relay to either rev cgi or onrev

2009-07-27 Thread Bernard Devlin
Years ago Pierre Sahores built an application server based on Rev.  He
used Apache/PHP as the front end, then used socket connections between
PHP and Rev so that a long-running Rev process could interact with
databases, and return the results via PHP to Apache.

There is a lot to recommend in his design.  He has a tutorial (in
french and english) here:
http://www2.sahores-conseil.com/insead/index_en.html

I can imagine you may not need the whole infrastructure he had in
mind, but getting the Apache/PHP/Rev stuff to work sounds like it
might be what you want, and from what I remember when I followed his
tutorial a couple of years ago, it was all straightforward.

Bernard

On Tue, Jul 28, 2009 at 4:07 AM, Nicolas Cueto wrote:
> After much testing and frustation, I've discovered that the on-rev
> server is unable to read the $_POST array when sent by WAP/WML-based
> Japanese cellphones to an .irev script.
>
> As a workaround, I've make a .php script that can read in $_POST. The
> next step is using php to forward the $_POST data to an .irev or
> rev-cgi script -- assuming of course that such a thing is possible.
> But, I really want to avoid having to learn (any more!) php, so am
> instead posting this somewhat off-topic request for help.
>
> Has someone tried to use php to relay data to .irev/rev-cgi?
>
> Thanks.
>
> --
> Nicolas Cueto
> ___
> 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: a php relay to either rev cgi or onrev

2009-07-27 Thread Jim Ault

On Jul 27, 2009, at 8:07 PM, Nicolas Cueto wrote:


After much testing and frustation, I've discovered that the on-rev
server is unable to read the $_POST array when sent by WAP/WML-based
Japanese cellphones to an .irev script.

As a workaround, I've make a .php script that can read in $_POST. The
next step is using php to forward the $_POST data to an .irev or
rev-cgi script -- assuming of course that such a thing is possible.
But, I really want to avoid having to learn (any more!) php, so am
instead posting this somewhat off-topic request for help.

Has someone tried to use php to relay data to .irev/rev-cgi?


Use PHP to extract the parts of the array you need, and then do a  
$_POST or $_GET to the irev/cgi using the desired variable names, just  
like you would if you were going to use PHP to navigate to another web  
page and pass variables to that page.  You might have to encode the  
characters before sending them to irev/cgi to be successful.


For example:
http://subdomain.on-rev.com/area/targetStack.irev?var1=dateStr&var2=timeStr&var3=contentStr&var4=otherDataStr

Then setup the 'targetStack' to look for both the GET & POST using the  
one that is not empty.  Now it can handle both methods of data arriving.


In August I will start working with my On-Rev account.  I have not  
actually done this, so hopefully this will point you in a useful  
direction.


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


a php relay to either rev cgi or onrev

2009-07-27 Thread Nicolas Cueto
After much testing and frustation, I've discovered that the on-rev
server is unable to read the $_POST array when sent by WAP/WML-based
Japanese cellphones to an .irev script.

As a workaround, I've make a .php script that can read in $_POST. The
next step is using php to forward the $_POST data to an .irev or
rev-cgi script -- assuming of course that such a thing is possible.
But, I really want to avoid having to learn (any more!) php, so am
instead posting this somewhat off-topic request for help.

Has someone tried to use php to relay data to .irev/rev-cgi?

Thanks.

--
Nicolas Cueto
___
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: [ON-REV] on-rev server and labelling directories "cgi-bin"

2009-06-29 Thread Bill Marriott
Nicolas,

I've encountered this on other cPanel-based hosts. The ISP was not much 
help, however. I think cPanel protects that directory so that only internal 
processes can access it, for security. Try using the form on on-Rev's 
support page if you haven't already...

- Bill

> Pushing the OT envelope maybe but...
>
> Does the on-rev server treat subdirectories
> and their contents differently when the
> directory housing them is labelled "cgi-bin"?
>
[...]
> when I try to access the images
> inside "kweto.net/cgi-bin/junkimg/", I get
> a 500 error. 



___
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


[ON-REV] on-rev server and labelling directories "cgi-bin"

2009-06-29 Thread Nicolas Cueto
Pushing the OT envelope maybe but...

Does the on-rev server treat subdirectories
and their contents differently when the
directory housing them is labelled "cgi-bin"?

In the directory linked to my domain name,
I've created a folder "cgi-bin" and then within
it created a folder "junkimg" with jpgs, as in:

kweto.net/cgi-bin/junkimg/a1008.jpg

However, when I try to access the images
inside "kweto.net/cgi-bin/junkimg/", I get
a 500 error.

The server error log too shows a 500 error,
plus these:

... script not found or unable to stat:
/home/kweto/public_html/kweto.net/cgi-bin/AnotherDir/index.htm
... attempt to invoke directory as script:
/home/kweto/public_html/kweto.net/cgi-bi/SomeOtherDir/


I've checked and fiddled with on-rev server's
cPanel "Password Protect Directories", but
no go.

Of course, I could just not use "cgi-bin"
as a label, but on my other webhost
account this is not a problem, and,
after I've moved everything from there
to on-rev, I'd like to keep the same
directory structure.

Thanks.

--
Nicolas Cueto
___
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: Japanese text, cgi, sql (again)

2009-06-04 Thread Kay C Lan
On Thu, Jun 4, 2009 at 2:35 PM, Nicolas Cueto  wrote:

>
> On and off over the last three years, I've
> been trying to crack the problem of
> downloading Japanese text which is
> contained in a mysql database by
> a stack + rev.cgi combination.
>
> It's that time of year again.
>
> As with past attempts, my latest too
> works fine except for the same old
> problem --  Japanese text arrives
> in the stack garbled (English text
> is ok).
>
> How do you know where the text becomes garbled?

Have you tried with a 'local' mySQL database?

When you send Japanese Text from Rev to mySQL and view it with a 3rd party
app like Navicat, does it appear in Navicat as you would expect it to? ie
has it arrived in the db correctly?

If you use Navicat to:

SELECT japaneseTextColumn FROM myTable INTO OUTFILE
'HD/Users/Shared/textDump.txt'

does it come out as you expect?

If you use Rev's revExecuteSQL command to do the statement above does the
file come out exactly the same? (note you will have to use a different file
name as mySQL will not overwrite an existing file)

If you use Rev's revDataFromQuery command and place the result in a variable
and look at it in the Variable Watcher is it what you expect?

Does it all fall apart at the very last step, placing the variable into a
html document where it is no longer displayed correctly?

You say it arrive's in the Rev stack garbled, but you mention html char set,
is this in a revBrowser window or do you mean a html document which then
displays in Firefox incorrectly?

Sorry, not much help.
___
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: Japanese text, cgi, sql (again)

2009-06-04 Thread Martin Baxter
Nicolas Cueto wrote:
> Hello All,
> 
> On and off over the last three years, I've
> been trying to crack the problem of
> downloading Japanese text which is
> contained in a mysql database by
> a stack + rev.cgi combination.
> 
> It's that time of year again.
> 
> As with past attempts, my latest too
> works fine except for the same old
> problem --  Japanese text arrives
> in the stack garbled (English text
> is ok).
> 
> Having tried a variety of suggestions
> from this list and from Japanese-users
> of Rev (the database's and its fields'
> collations; Rev uniencode/unidecode/
> unicodetext commands; etc),   my
> latest thought is the problem may lie
> with this final part of my cgi script:
> 
> 
>   -- put "Content-Type: text/plain" & cr before buffer
>   -- put "Content-Type: text/html; charset = utf-8" & cr
>   put  "Content-Length:" && the length of buffer & cr & cr
>   put buffer
> 
> 
> As the commented-out lines show, I've tried
> different "Content-Type".  But not having a full
> understanding of how this or char-set work,
> they're just blind guesses.
> 
> Could the cgi-script's content-type / charset
> (or something else similar) be what's garbling
> the Japanese text?
> 
> Perhaps this year will be the lucky one.
> 
> Thanks.
> 
> --
> Nicolas Cueto

Hello Nicolas,

I'm no expert but, working with mySQL and websites, I have found that
the following MySQL command is needed to tell the database what kind of
data it is about to transmit (this assumes the data is actually utf-8 of
course)

SET NAMES 'utf8'

You would use revExecuteSQL with the connection id to isssue this after
making the connection and before trying to transmit the data. Every part
of the process has to be told what kind of data it is dealing with.

Martin Baxter

-- 
If you want to go fast, go alone; if you want to go far, go together
(African proverb)
___
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


Japanese text, cgi, sql (again)

2009-06-03 Thread Nicolas Cueto
Hello All,

On and off over the last three years, I've
been trying to crack the problem of
downloading Japanese text which is
contained in a mysql database by
a stack + rev.cgi combination.

It's that time of year again.

As with past attempts, my latest too
works fine except for the same old
problem --  Japanese text arrives
in the stack garbled (English text
is ok).

Having tried a variety of suggestions
from this list and from Japanese-users
of Rev (the database's and its fields'
collations; Rev uniencode/unidecode/
unicodetext commands; etc),   my
latest thought is the problem may lie
with this final part of my cgi script:


  -- put "Content-Type: text/plain" & cr before buffer
  -- put "Content-Type: text/html; charset = utf-8" & cr
  put  "Content-Length:" && the length of buffer & cr & cr
  put buffer


As the commented-out lines show, I've tried
different "Content-Type".  But not having a full
understanding of how this or char-set work,
they're just blind guesses.

Could the cgi-script's content-type / charset
(or something else similar) be what's garbling
the Japanese text?

Perhaps this year will be the lucky one.

Thanks.

--
Nicolas Cueto
___
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: Converting server-based cgi app to work locally

2009-05-19 Thread Richard Miller

Thanks, Sarah.
I was able to sort it out using localhost.
Richard


Sarah Reichelt wrote:

On Wed, May 20, 2009 at 12:40 AM, Richard Miller  wrote:
  

I have a Rev app that is closely integrated with some remote server-based
Rev cgi scripting. I'd like to modify the app so it can work locally when
there's no internet connection.

I have lots of calls like this:

put url ("http://65.23.xxx.x/cgi-bin/RevSearch.cgi?setcompdata="; & compfile
& "=" & urlencode(compdata)) into x

What's the simplest way to modify this to work locally? I have no experience
doing this. I'm thinking I can put a Rev cgi engine somewhere on my PC and
then simply change the URL so it points locally. Does that engine need to go
into a specific folder or can it go anywhere? How then do I structure the
URL?



I guess this depends on how your app is going to get it's data if
there is no connection.

I have a similar app and when testing, I turn on the web server in my
own computer, install my cgi-scripts there and use "localhost" instead
of the IP address. That is on the Mac, I don't know anything about web
serving under Windows.

Another option would be to run a version of Andre's RevOnRockets HTTP
stack as your server and somehow get it to supply the required data.

If this is going to work, I presume you have a set of default data
that you can supply instead of whatever was supposed to be coming from
the web server. So a better way might be to check for an internet
connection and then have functions that get your data. e.g.

if connectedToNet then
   put url ("http://65.23.xxx.x/cgi-bin/RevSearch.cgi?setcompdata="; &
compfile & "=" & urlencode(compdata)) into x
else
   put "default data" into x
end if

One of the simplest ways to check for an internet connection is to put
a text file on your site containing nothing but the number 1.
Then:
  put "http://mysite.com/test.txt"; into tCheck
  if tCheck = 1 then ... you are connected
The virtue of this is that it tests the connection to the relevant server too.

HTH,
Sarah
___
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: Converting server-based cgi app to work locally

2009-05-19 Thread Sarah Reichelt
On Wed, May 20, 2009 at 12:40 AM, Richard Miller  wrote:
> I have a Rev app that is closely integrated with some remote server-based
> Rev cgi scripting. I'd like to modify the app so it can work locally when
> there's no internet connection.
>
> I have lots of calls like this:
>
> put url ("http://65.23.xxx.x/cgi-bin/RevSearch.cgi?setcompdata="; & compfile
> & "=" & urlencode(compdata)) into x
>
> What's the simplest way to modify this to work locally? I have no experience
> doing this. I'm thinking I can put a Rev cgi engine somewhere on my PC and
> then simply change the URL so it points locally. Does that engine need to go
> into a specific folder or can it go anywhere? How then do I structure the
> URL?

I guess this depends on how your app is going to get it's data if
there is no connection.

I have a similar app and when testing, I turn on the web server in my
own computer, install my cgi-scripts there and use "localhost" instead
of the IP address. That is on the Mac, I don't know anything about web
serving under Windows.

Another option would be to run a version of Andre's RevOnRockets HTTP
stack as your server and somehow get it to supply the required data.

If this is going to work, I presume you have a set of default data
that you can supply instead of whatever was supposed to be coming from
the web server. So a better way might be to check for an internet
connection and then have functions that get your data. e.g.

if connectedToNet then
   put url ("http://65.23.xxx.x/cgi-bin/RevSearch.cgi?setcompdata="; &
compfile & "=" & urlencode(compdata)) into x
else
   put "default data" into x
end if

One of the simplest ways to check for an internet connection is to put
a text file on your site containing nothing but the number 1.
Then:
  put "http://mysite.com/test.txt"; into tCheck
  if tCheck = 1 then ... you are connected
The virtue of this is that it tests the connection to the relevant server too.

HTH,
Sarah
___
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


Converting server-based cgi app to work locally

2009-05-19 Thread Richard Miller
I have a Rev app that is closely integrated with some remote 
server-based Rev cgi scripting. I'd like to modify the app so it can 
work locally when there's no internet connection.


I have lots of calls like this:

put url ("http://65.23.xxx.x/cgi-bin/RevSearch.cgi?setcompdata="; & 
compfile & "=" & urlencode(compdata)) into x


What's the simplest way to modify this to work locally? I have no 
experience doing this. I'm thinking I can put a Rev cgi engine somewhere 
on my PC and then simply change the URL so it points locally. Does that 
engine need to go into a specific folder or can it go anywhere? How then 
do I structure the URL?


Thanks for any help with this.

Richard Miller
___
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: Django with On-Rev Using CGI

2009-05-04 Thread Mark Wieder
Gordon-

Monday, May 4, 2009, 8:43:42 AM, you wrote:

> Here is a quick post that shows how to install Django (and several other
> packages) and configure it to work with your On-Rev account.

!!! This is exciting and timely. I was just wondering this morning
about what it would take to get Django running on on-rev. Thanks.

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
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: Django with On-Rev Using CGI

2009-05-04 Thread Gordon Tillman

David Bovill wrote:

Fab! Have not used Django in a few years - have some Rev scripts hanging
around somewhere that would parse / create  Django XML files... by the way
what do you like about Mercurial? I've just moved over to GIT, but not had a
look at Mercurial?
David I've never used Git, so I can't comment on that one, but I've used 
CVS and SVN extensively over the years.  It took me just a short while 
to get my head around the Mercurial way to do things (which is probably 
very similar to Git). 

It's dead-easy to install and configure and to start a new repository.  
I really like the mindset of committing your changes before pulling and 
merging stuff from other developer's, as opposed to updating from a 
central repository first, merging/fixing conflicts, then committing. 

I like the flexibility of how you can publish changes.  You can use the 
built-in web server to browse and pull changes.  You can email changes.  
You can grab them via SSH, etc.  Very nice.  The command line interface 
is very simple and the built-in help is great.


Performance is very fast and there is no problem at all with binary 
files, even large ones.


There is a youtube video here: 
http://www.youtube.com/watch?v=JExtkqzEoHY from one of the lead 
developer's that is interesting.


--gordon
___
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: Django with On-Rev Using CGI

2009-05-04 Thread David Bovill
Fab! Have not used Django in a few years - have some Rev scripts hanging
around somewhere that would parse / create  Django XML files... by the way
what do you like about Mercurial? I've just moved over to GIT, but not had a
look at Mercurial?

2009/5/4 Gordon Tillman 

> Howdy Folks,
>
> Here is a quick post that shows how to install Django (and several other
> packages) and configure it to work with your On-Rev account.
>
>
> http://www.gordontillman.info/computers/41-web-application-development/99-django-with-on-rev
>
> --gordon
___
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


Django with On-Rev Using CGI

2009-05-04 Thread Gordon Tillman

Howdy Folks,

Here is a quick post that shows how to install Django (and several other 
packages) and configure it to work with your On-Rev account.


http://www.gordontillman.info/computers/41-web-application-development/99-django-with-on-rev

--gordon


___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread andre
Cool aint it. If I change my version here, then, versions will be  
different and you'll see a note and be given the option to update.


Cheers
André

Enviado de meu iPhone

Em 24/04/2009, às 15:06, -= JB =-  escreveu:


I downloaded and installed it and it says I have the right version.

-=>JB<=-


On Apr 24, 2009, at 10:56 AM, Andre Garzia wrote:


Friends,

I think I've broken yet another milestone. JB, Matthias and others  
that
download the file, please check again. I've just added code that  
that make
the irev file auto-update. It will check against the version on my  
account

and give you the option to auto-update the file, and it works.

The auto-update code is very small, it allows me to patch things,  
and you
there using it on your own servers will see the announcement as  
soon as you

load the page. Quite nice!

http://andregarzia.on-rev.com/installcgi.irev

Even if you already installed the revolution cgi engine, it is nice  
to check

this code to see how to make auto-updating pages. Very user friendly.

Cheers
___
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

___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread -= JB =-

I downloaded and installed it and it says I have the right version.

-=>JB<=-


On Apr 24, 2009, at 10:56 AM, Andre Garzia wrote:


Friends,

I think I've broken yet another milestone. JB, Matthias and others  
that
download the file, please check again. I've just added code that  
that make
the irev file auto-update. It will check against the version on my  
account

and give you the option to auto-update the file, and it works.

The auto-update code is very small, it allows me to patch things,  
and you
there using it on your own servers will see the announcement as  
soon as you

load the page. Quite nice!

http://andregarzia.on-rev.com/installcgi.irev

Even if you already installed the revolution cgi engine, it is nice  
to check

this code to see how to make auto-updating pages. Very user friendly.

Cheers
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread Andre Garzia
Friends,

I think I've broken yet another milestone. JB, Matthias and others that
download the file, please check again. I've just added code that that make
the irev file auto-update. It will check against the version on my account
and give you the option to auto-update the file, and it works.

The auto-update code is very small, it allows me to patch things, and you
there using it on your own servers will see the announcement as soon as you
load the page. Quite nice!

http://andregarzia.on-rev.com/installcgi.irev

Even if you already installed the revolution cgi engine, it is nice to check
this code to see how to make auto-updating pages. Very user friendly.

Cheers
___
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: Re-2: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread Andre Garzia
Matthias,

there is a new version with version check and auto updating of the
installation tool. Can you check it out please?

Thanks
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread Andre Garzia
Friends,

I think I've broken yet another milestone. JB, Matthias and others that
download the file, please check again. I've just added code that that make
the irev file auto-update. It will check against the version on my account
and give you the option to auto-update the file, and it works.

The auto-update code is very small, it allows me to patch things, and you
there using it on your own servers will see the announcement as soon as you
load the page. Quite nice!

http://andregarzia.on-rev.com/installcgi.irev

Even if you already installed the revolution cgi engine, it is nice to check
this code to see how to make auto-updating pages. Very user friendly.

Cheers
andre

On Fri, Apr 24, 2009 at 2:38 PM, -= JB =-  wrote:

> Thanks to you and Andre again.
>
> The info you provided cleared a lot of things up and is needed even
> though it is installed.
>
> -=>JB<=-
>
>
>
> On Apr 24, 2009, at 10:30 AM, J. Landman Gay wrote:
>
>  -= JB =- wrote:
>>
>>> Thanks again.  The reason I turned it on is in your lesson it told me to
>>> turn something
>>> on in a preference and that was the closest thing I found.  Maybe that
>>> was one of my
>>> problems since I turned that on instead of something else that needed
>>> turned on.
>>>
>>
>> That was for testing on your local machine. If you are only using on-rev,
>> you don't need that. Anyway, you're installed now, which is the important
>> part.
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> ___
>> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread -= JB =-

Thanks to you and Andre again.

The info you provided cleared a lot of things up and is needed even
though it is installed.

-=>JB<=-


On Apr 24, 2009, at 10:30 AM, J. Landman Gay wrote:


-= JB =- wrote:
Thanks again.  The reason I turned it on is in your lesson it told  
me to turn something
on in a preference and that was the closest thing I found.  Maybe  
that was one of my
problems since I turned that on instead of something else that  
needed turned on.


That was for testing on your local machine. If you are only using  
on-rev, you don't need that. Anyway, you're installed now, which is  
the important part.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread J. Landman Gay

-= JB =- wrote:
Thanks again.  The reason I turned it on is in your lesson it told me to 
turn something
on in a preference and that was the closest thing I found.  Maybe that 
was one of my
problems since I turned that on instead of something else that needed 
turned on.


That was for testing on your local machine. If you are only using 
on-rev, you don't need that. Anyway, you're installed now, which is the 
important part.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread -= JB =-
Thanks again.  The reason I turned it on is in your lesson it told me  
to turn something
on in a preference and that was the closest thing I found.  Maybe  
that was one of my
problems since I turned that on instead of something else that needed  
turned on.


-=>JB<=-


On Apr 24, 2009, at 10:16 AM, J. Landman Gay wrote:


-= JB =- wrote:
I have Personal Web Sharing turned on in my system preference  
folder.  Is that

wrong, right or doesn't matter?


It doesn't matter. Your home PC is irrelevant to on-rev. The only  
connection in this case is that you are mounting the remote server  
on your desktop in order to copy files, but there is no interaction  
otherwise between on-rev and your home machine.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread J. Landman Gay

-= JB =- wrote:
I have Personal Web Sharing turned on in my system preference folder.  
Is that

wrong, right or doesn't matter?


It doesn't matter. Your home PC is irrelevant to on-rev. The only 
connection in this case is that you are mounting the remote server on 
your desktop in order to copy files, but there is no interaction 
otherwise between on-rev and your home machine.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread -= JB =-

It works great!

thank you very much, Andre

-=>JB<=-


On Apr 24, 2009, at 10:00 AM, Andre Garzia wrote:


JB,

I think there was a bug in my file, can you download it again from:

http://andregarzia.on-rev.com/installcgi.irev

Cheers
andre

On Fri, Apr 24, 2009 at 1:57 PM, Andre Garzia  
 wrote:



JB,

that link does not take you to my site but yours site with the  
tool in
it... go there again, does it say that revolution is installed? if  
so, click
the HERE thing to reinstall it and copy paste the page on an email  
to me.


Cheers
andre


On Fri, Apr 24, 2009 at 1:55 PM, -= JB =-   
wrote:



Hi Andre,

I had already downloaded the file and installed it in my folder.
The way I installed it was by using webdisk which on-rev had
installed for me.

I clicked your link below and it took me to your site but in the
field it showed internal error and when I clicked on the sample
link it said internal error too.

-=>JB<=-



On Apr 24, 2009, at 9:42 AM, Andre Garzia wrote:

 Hey JB,


let us go part by part... first did you unzipped the thing on  
your hard

drive and then copy just the irev file to your public_html

then you load http://sundown.on-rev.com/installcgi.irev then it  
will be

installed.

:D

On Fri, Apr 24, 2009 at 1:41 PM, -= JB =-   
wrote:


 Thanks Andre


I used your site and had it install which was done without my  
needing
to fill out anything if I did it right.  It asked me if I  
wanted to

replace
the
version that was installed.  I had put in on by the webdisk  
offered with
on-rev and it appears to have been poorly copied so needed  
replaced.


I downloaded the zip file and put it in my public_html folder  
using the

webdisk from on-rev.

then I entered the below in my broswer.

http://sundown.on-rev.com/cgi-bin/hello.cgi

instead of taking me to a page with Hello World like your example
I get an Internal Server Error

Do you have any idea what the problem is?

-=>JB<=-



On Apr 24, 2009, at 9:22 AM, Andre Garzia wrote:

 Hello Again my Friends,



Are you struggling to install the Revolution CGI engine on  
your On-Rev
account? Can't stand cPanel? Don't know what FTP or CHMOD is?  
Well,

well,
well, your problems are OVER!

With this new handy self contained self distributable self  
selfish
installer, you'll be able to just load a web page and have  
everything

installed.

Oh yes, it is that easy!!!

http://andregarzia.on-rev.com/installcgi.irev

Now enough marketing speak. Let me explain what this does.

It first check to see if there's a revolution engine named  
revolution

in
your cgi-bin, if so, it does nothing.

If there's not, then it get a handy compressed file from my  
account

with
revolution engine and database drivers and it unpacks it in your
cgi-bin
folder
it also set the correct permissions and put a simple hello  
world cgi

there.

The whole thing is self contained, so once it runs, it  
generates a zip

file
and a tar.gz file of itself so that others can download it too.

Let us spread CGI love!

Now, I allow each of you to click the reinstall option on my  
server but
please don't keep reinstalling my engine, it uses too much  
carbon and I

want
a green account
Anyway, this installer does not delete anything it only  
overwrites the

file
revolution if it is present and you tell it so.

Be happy!
andre

--
http://www.andregarzia.com All We Do Is Code.
___
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





--
http://www.andregarzia.com All We Do Is Code.
___
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





--
http://www.andregarzia.com All We Do Is Code.





--
http://www.andregarzia.com All We Do Is Code.
___
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 sub

Re-2: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread runrev260805
Hi JB,
hi Andre,

i can confirm this. Running the script only places 2 files (installcgi.tar.gz 
and installcgi.zip) in the same folder, where installcgi.irev is.

It shows me here

tar: ../revcgi.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
chmod: cannot access `cgi-bin/revolution': No such file or directory
chmod: cannot access `cgi-bin/*.cgi': No such file or directory


Regards,

Matthias


 Original Message 
Subject: Re: [ANN] Revolution CGI Engine installation tool for On-Rev accounts 
(24-Apr-2009 18:58)
From:-= JB =- 
To:  runrev260...@m-r-d.de

> Hi Andre,
> 
> I had already downloaded the file and installed it in my folder.
> The way I installed it was by using webdisk which on-rev had
> installed for me.
> 
> I clicked your link below and it took me to your site but in the
> field it showed internal error and when I clicked on the sample
> link it said internal error too.
> 
> -=>JB<=-
> 
> 
> On Apr 24, 2009, at 9:42 AM, Andre Garzia wrote:
> 
> > Hey JB,
> >
> > let us go part by part... first did you unzipped the thing on your  
> > hard
> > drive and then copy just the irev file to your public_html
> >
> > then you load http://sundown.on-rev.com/installcgi.irev then it  
> > will be
> > installed.
> >
> > :D
> >
> > On Fri, Apr 24, 2009 at 1:41 PM, -= JB =-   
> > wrote:
> >
> >> Thanks Andre
> >>
> >> I used your site and had it install which was done without my needing
> >> to fill out anything if I did it right.  It asked me if I wanted  
> >> to replace
> >> the
> >> version that was installed.  I had put in on by the webdisk  
> >> offered with
> >> on-rev and it appears to have been poorly copied so needed replaced.
> >>
> >> I downloaded the zip file and put it in my public_html folder  
> >> using the
> >> webdisk from on-rev.
> >>
> >> then I entered the below in my broswer.
> >>
> >> http://sundown.on-rev.com/cgi-bin/hello.cgi
> >>
> >> instead of taking me to a page with Hello World like your example
> >> I get an Internal Server Error
> >>
> >> Do you have any idea what the problem is?
> >>
> >> -=>JB<=-
> >>
> >>
> >>
> >> On Apr 24, 2009, at 9:22 AM, Andre Garzia wrote:
> >>
> >>  Hello Again my Friends,
> >>>
> >>> Are you struggling to install the Revolution CGI engine on your  
> >>> On-Rev
> >>> account? Can't stand cPanel? Don't know what FTP or CHMOD is?  
> >>> Well, well,
> >>> well, your problems are OVER!
> >>>
> >>> With this new handy self contained self distributable self selfish
> >>> installer, you'll be able to just load a web page and have  
> >>> everything
> >>> installed.
> >>>
> >>> Oh yes, it is that easy!!!
> >>>
> >>> http://andregarzia.on-rev.com/installcgi.irev
> >>>
> >>> Now enough marketing speak. Let me explain what this does.
> >>>
> >>> It first check to see if there's a revolution engine named  
> >>> revolution in
> >>> your cgi-bin, if so, it does nothing.
> >>>
> >>> If there's not, then it get a handy compressed file from my  
> >>> account with
> >>> revolution engine and database drivers and it unpacks it in your  
> >>> cgi-bin
> >>> folder
> >>> it also set the correct permissions and put a simple hello world cgi
> >>> there.
> >>>
> >>> The whole thing is self contained, so once it runs, it generates  
> >>> a zip
> >>> file
> >>> and a tar.gz file of itself so that others can download it too.
> >>>
> >>> Let us spread CGI love!
> >>>
> >>> Now, I allow each of you to click the reinstall option on my  
> >>> server but
> >>> please don't keep reinstalling my engine, it uses too much carbon  
> >>> and I
> >>> want
> >>> a green account
> >>> Anyway, this installer does not delete anything it only  
> >>> overwrites the
> >>> file
> >>> revolution if it is present and you tell it so.
> >>>
> >>> Be happy!
> >>> andre
> >>>
> >>> --
>

Re: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread Andre Garzia
JB,

I think there was a bug in my file, can you download it again from:

http://andregarzia.on-rev.com/installcgi.irev

Cheers
andre

On Fri, Apr 24, 2009 at 1:57 PM, Andre Garzia  wrote:

> JB,
>
> that link does not take you to my site but yours site with the tool in
> it... go there again, does it say that revolution is installed? if so, click
> the HERE thing to reinstall it and copy paste the page on an email to me.
>
> Cheers
> andre
>
>
> On Fri, Apr 24, 2009 at 1:55 PM, -= JB =-  wrote:
>
>> Hi Andre,
>>
>> I had already downloaded the file and installed it in my folder.
>> The way I installed it was by using webdisk which on-rev had
>> installed for me.
>>
>> I clicked your link below and it took me to your site but in the
>> field it showed internal error and when I clicked on the sample
>> link it said internal error too.
>>
>> -=>JB<=-
>>
>>
>>
>> On Apr 24, 2009, at 9:42 AM, Andre Garzia wrote:
>>
>>  Hey JB,
>>>
>>> let us go part by part... first did you unzipped the thing on your hard
>>> drive and then copy just the irev file to your public_html
>>>
>>> then you load http://sundown.on-rev.com/installcgi.irev then it will be
>>> installed.
>>>
>>> :D
>>>
>>> On Fri, Apr 24, 2009 at 1:41 PM, -= JB =-  wrote:
>>>
>>>  Thanks Andre
>>>>
>>>> I used your site and had it install which was done without my needing
>>>> to fill out anything if I did it right.  It asked me if I wanted to
>>>> replace
>>>> the
>>>> version that was installed.  I had put in on by the webdisk offered with
>>>> on-rev and it appears to have been poorly copied so needed replaced.
>>>>
>>>> I downloaded the zip file and put it in my public_html folder using the
>>>> webdisk from on-rev.
>>>>
>>>> then I entered the below in my broswer.
>>>>
>>>> http://sundown.on-rev.com/cgi-bin/hello.cgi
>>>>
>>>> instead of taking me to a page with Hello World like your example
>>>> I get an Internal Server Error
>>>>
>>>> Do you have any idea what the problem is?
>>>>
>>>> -=>JB<=-
>>>>
>>>>
>>>>
>>>> On Apr 24, 2009, at 9:22 AM, Andre Garzia wrote:
>>>>
>>>>  Hello Again my Friends,
>>>>
>>>>>
>>>>> Are you struggling to install the Revolution CGI engine on your On-Rev
>>>>> account? Can't stand cPanel? Don't know what FTP or CHMOD is? Well,
>>>>> well,
>>>>> well, your problems are OVER!
>>>>>
>>>>> With this new handy self contained self distributable self selfish
>>>>> installer, you'll be able to just load a web page and have everything
>>>>> installed.
>>>>>
>>>>> Oh yes, it is that easy!!!
>>>>>
>>>>> http://andregarzia.on-rev.com/installcgi.irev
>>>>>
>>>>> Now enough marketing speak. Let me explain what this does.
>>>>>
>>>>> It first check to see if there's a revolution engine named revolution
>>>>> in
>>>>> your cgi-bin, if so, it does nothing.
>>>>>
>>>>> If there's not, then it get a handy compressed file from my account
>>>>> with
>>>>> revolution engine and database drivers and it unpacks it in your
>>>>> cgi-bin
>>>>> folder
>>>>> it also set the correct permissions and put a simple hello world cgi
>>>>> there.
>>>>>
>>>>> The whole thing is self contained, so once it runs, it generates a zip
>>>>> file
>>>>> and a tar.gz file of itself so that others can download it too.
>>>>>
>>>>> Let us spread CGI love!
>>>>>
>>>>> Now, I allow each of you to click the reinstall option on my server but
>>>>> please don't keep reinstalling my engine, it uses too much carbon and I
>>>>> want
>>>>> a green account
>>>>> Anyway, this installer does not delete anything it only overwrites the
>>>>> file
>>>>> revolution if it is present and you tell it so.
>>>>>
>>>>> Be happy!
>>>>> andre
>>>>>
>>>>> --
>>>>> http://www.an

Re: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread -= JB =-
I have Personal Web Sharing turned on in my system preference  
folder.  Is that

wrong, right or doesn't matter?

-=>JB<=-


On Apr 24, 2009, at 9:22 AM, Andre Garzia wrote:


Hello Again my Friends,

Are you struggling to install the Revolution CGI engine on your On-Rev
account? Can't stand cPanel? Don't know what FTP or CHMOD is? Well,  
well,

well, your problems are OVER!

With this new handy self contained self distributable self selfish
installer, you'll be able to just load a web page and have everything
installed.

Oh yes, it is that easy!!!

http://andregarzia.on-rev.com/installcgi.irev

Now enough marketing speak. Let me explain what this does.

It first check to see if there's a revolution engine named  
revolution in

your cgi-bin, if so, it does nothing.

If there's not, then it get a handy compressed file from my account  
with
revolution engine and database drivers and it unpacks it in your  
cgi-bin

folder
it also set the correct permissions and put a simple hello world  
cgi there.


The whole thing is self contained, so once it runs, it generates a  
zip file

and a tar.gz file of itself so that others can download it too.

Let us spread CGI love!

Now, I allow each of you to click the reinstall option on my server  
but
please don't keep reinstalling my engine, it uses too much carbon  
and I want

a green account
Anyway, this installer does not delete anything it only overwrites  
the file

revolution if it is present and you tell it so.

Be happy!
andre

--
http://www.andregarzia.com All We Do Is Code.
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread Andre Garzia
JB,

that link does not take you to my site but yours site with the tool in it...
go there again, does it say that revolution is installed? if so, click the
HERE thing to reinstall it and copy paste the page on an email to me.

Cheers
andre

On Fri, Apr 24, 2009 at 1:55 PM, -= JB =-  wrote:

> Hi Andre,
>
> I had already downloaded the file and installed it in my folder.
> The way I installed it was by using webdisk which on-rev had
> installed for me.
>
> I clicked your link below and it took me to your site but in the
> field it showed internal error and when I clicked on the sample
> link it said internal error too.
>
> -=>JB<=-
>
>
>
> On Apr 24, 2009, at 9:42 AM, Andre Garzia wrote:
>
>  Hey JB,
>>
>> let us go part by part... first did you unzipped the thing on your hard
>> drive and then copy just the irev file to your public_html
>>
>> then you load http://sundown.on-rev.com/installcgi.irev then it will be
>> installed.
>>
>> :D
>>
>> On Fri, Apr 24, 2009 at 1:41 PM, -= JB =-  wrote:
>>
>>  Thanks Andre
>>>
>>> I used your site and had it install which was done without my needing
>>> to fill out anything if I did it right.  It asked me if I wanted to
>>> replace
>>> the
>>> version that was installed.  I had put in on by the webdisk offered with
>>> on-rev and it appears to have been poorly copied so needed replaced.
>>>
>>> I downloaded the zip file and put it in my public_html folder using the
>>> webdisk from on-rev.
>>>
>>> then I entered the below in my broswer.
>>>
>>> http://sundown.on-rev.com/cgi-bin/hello.cgi
>>>
>>> instead of taking me to a page with Hello World like your example
>>> I get an Internal Server Error
>>>
>>> Do you have any idea what the problem is?
>>>
>>> -=>JB<=-
>>>
>>>
>>>
>>> On Apr 24, 2009, at 9:22 AM, Andre Garzia wrote:
>>>
>>>  Hello Again my Friends,
>>>
>>>>
>>>> Are you struggling to install the Revolution CGI engine on your On-Rev
>>>> account? Can't stand cPanel? Don't know what FTP or CHMOD is? Well,
>>>> well,
>>>> well, your problems are OVER!
>>>>
>>>> With this new handy self contained self distributable self selfish
>>>> installer, you'll be able to just load a web page and have everything
>>>> installed.
>>>>
>>>> Oh yes, it is that easy!!!
>>>>
>>>> http://andregarzia.on-rev.com/installcgi.irev
>>>>
>>>> Now enough marketing speak. Let me explain what this does.
>>>>
>>>> It first check to see if there's a revolution engine named revolution in
>>>> your cgi-bin, if so, it does nothing.
>>>>
>>>> If there's not, then it get a handy compressed file from my account with
>>>> revolution engine and database drivers and it unpacks it in your cgi-bin
>>>> folder
>>>> it also set the correct permissions and put a simple hello world cgi
>>>> there.
>>>>
>>>> The whole thing is self contained, so once it runs, it generates a zip
>>>> file
>>>> and a tar.gz file of itself so that others can download it too.
>>>>
>>>> Let us spread CGI love!
>>>>
>>>> Now, I allow each of you to click the reinstall option on my server but
>>>> please don't keep reinstalling my engine, it uses too much carbon and I
>>>> want
>>>> a green account
>>>> Anyway, this installer does not delete anything it only overwrites the
>>>> file
>>>> revolution if it is present and you tell it so.
>>>>
>>>> Be happy!
>>>> andre
>>>>
>>>> --
>>>> http://www.andregarzia.com All We Do Is Code.
>>>> ___
>>>> 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
>>>
>>>
>>
>>
>> --
>> http://www.andregarzia.com All We Do Is Code.
>> ___
>> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread -= JB =-

Hi Andre,

I had already downloaded the file and installed it in my folder.
The way I installed it was by using webdisk which on-rev had
installed for me.

I clicked your link below and it took me to your site but in the
field it showed internal error and when I clicked on the sample
link it said internal error too.

-=>JB<=-


On Apr 24, 2009, at 9:42 AM, Andre Garzia wrote:


Hey JB,

let us go part by part... first did you unzipped the thing on your  
hard

drive and then copy just the irev file to your public_html

then you load http://sundown.on-rev.com/installcgi.irev then it  
will be

installed.

:D

On Fri, Apr 24, 2009 at 1:41 PM, -= JB =-   
wrote:



Thanks Andre

I used your site and had it install which was done without my needing
to fill out anything if I did it right.  It asked me if I wanted  
to replace

the
version that was installed.  I had put in on by the webdisk  
offered with

on-rev and it appears to have been poorly copied so needed replaced.

I downloaded the zip file and put it in my public_html folder  
using the

webdisk from on-rev.

then I entered the below in my broswer.

http://sundown.on-rev.com/cgi-bin/hello.cgi

instead of taking me to a page with Hello World like your example
I get an Internal Server Error

Do you have any idea what the problem is?

-=>JB<=-



On Apr 24, 2009, at 9:22 AM, Andre Garzia wrote:

 Hello Again my Friends,


Are you struggling to install the Revolution CGI engine on your  
On-Rev
account? Can't stand cPanel? Don't know what FTP or CHMOD is?  
Well, well,

well, your problems are OVER!

With this new handy self contained self distributable self selfish
installer, you'll be able to just load a web page and have  
everything

installed.

Oh yes, it is that easy!!!

http://andregarzia.on-rev.com/installcgi.irev

Now enough marketing speak. Let me explain what this does.

It first check to see if there's a revolution engine named  
revolution in

your cgi-bin, if so, it does nothing.

If there's not, then it get a handy compressed file from my  
account with
revolution engine and database drivers and it unpacks it in your  
cgi-bin

folder
it also set the correct permissions and put a simple hello world cgi
there.

The whole thing is self contained, so once it runs, it generates  
a zip

file
and a tar.gz file of itself so that others can download it too.

Let us spread CGI love!

Now, I allow each of you to click the reinstall option on my  
server but
please don't keep reinstalling my engine, it uses too much carbon  
and I

want
a green account
Anyway, this installer does not delete anything it only  
overwrites the

file
revolution if it is present and you tell it so.

Be happy!
andre

--
http://www.andregarzia.com All We Do Is Code.
___
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





--
http://www.andregarzia.com All We Do Is Code.
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread Andre Garzia
Matthias,

Glad you liked it! It took like 10 minutes to build and it is a real time
saver!

Thanks for the kind words!
Andre

On Fri, Apr 24, 2009 at 1:49 PM,  wrote:

> Hi Andre,
>
> and again thanks for your amazing work.
>
> Although i have already installed the engine manually into one folder a few
> days ago, this tool will help me
> to install the cgi into other domain folders.
>
> Matthias
>
>
>
>
>  Original Message 
> Subject: [ANN] Revolution CGI Engine installation tool for On-Rev accounts
> (24-Apr-2009 18:26)
> From:Andre Garzia 
> To:  runrev260...@m-r-d.de
>
> > Hello Again my Friends,
> >
> > Are you struggling to install the Revolution CGI engine on your On-Rev
> > account? Can't stand cPanel? Don't know what FTP or CHMOD is? Well, well,
> > well, your problems are OVER!
> >
> > With this new handy self contained self distributable self selfish
> > installer, you'll be able to just load a web page and have everything
> > installed.
> >
> > Oh yes, it is that easy!!!
> >
> > http://andregarzia.on-rev.com/installcgi.irev
> >
> > Now enough marketing speak. Let me explain what this does.
> >
> > It first check to see if there's a revolution engine named revolution in
> > your cgi-bin, if so, it does nothing.
> >
> > If there's not, then it get a handy compressed file from my account with
> > revolution engine and database drivers and it unpacks it in your cgi-bin
> > folder
> > it also set the correct permissions and put a simple hello world cgi
> there.
> >
> > The whole thing is self contained, so once it runs, it generates a zip
> file
> > and a tar.gz file of itself so that others can download it too.
> >
> > Let us spread CGI love!
> >
> > Now, I allow each of you to click the reinstall option on my server but
> > please don't keep reinstalling my engine, it uses too much carbon and I
> > want
> > a green account
> > Anyway, this installer does not delete anything it only overwrites the
> file
> > revolution if it is present and you tell it so.
> >
> > Be happy!
> > andre
> >
> > --
> > http://www.andregarzia.com All We Do Is Code.
> > ___
> > 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
> >
> >
> >
> >
> > To: use-revolution@lists.runrev.com
>
>
> ___
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread runrev260805
Hi Andre,

and again thanks for your amazing work.

Although i have already installed the engine manually into one folder a few 
days ago, this tool will help me
to install the cgi into other domain folders.

Matthias




 Original Message 
Subject: [ANN] Revolution CGI Engine installation tool for On-Rev accounts 
(24-Apr-2009 18:26)
From:Andre Garzia 
To:  runrev260...@m-r-d.de

> Hello Again my Friends,
> 
> Are you struggling to install the Revolution CGI engine on your On-Rev
> account? Can't stand cPanel? Don't know what FTP or CHMOD is? Well, well,
> well, your problems are OVER!
> 
> With this new handy self contained self distributable self selfish
> installer, you'll be able to just load a web page and have everything
> installed.
> 
> Oh yes, it is that easy!!!
> 
> http://andregarzia.on-rev.com/installcgi.irev
> 
> Now enough marketing speak. Let me explain what this does.
> 
> It first check to see if there's a revolution engine named revolution in
> your cgi-bin, if so, it does nothing.
> 
> If there's not, then it get a handy compressed file from my account with
> revolution engine and database drivers and it unpacks it in your cgi-bin
> folder
> it also set the correct permissions and put a simple hello world cgi there.
> 
> The whole thing is self contained, so once it runs, it generates a zip file
> and a tar.gz file of itself so that others can download it too.
> 
> Let us spread CGI love!
> 
> Now, I allow each of you to click the reinstall option on my server but
> please don't keep reinstalling my engine, it uses too much carbon and I 
> want
> a green account
> Anyway, this installer does not delete anything it only overwrites the file
> revolution if it is present and you tell it so.
> 
> Be happy!
> andre
> 
> -- 
> http://www.andregarzia.com All We Do Is Code.
> ___
> 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
> 
> 
> 
> 
> To: use-revolution@lists.runrev.com


___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread Andre Garzia
Hey JB,

let us go part by part... first did you unzipped the thing on your hard
drive and then copy just the irev file to your public_html

then you load http://sundown.on-rev.com/installcgi.irev then it will be
installed.

:D

On Fri, Apr 24, 2009 at 1:41 PM, -= JB =-  wrote:

> Thanks Andre
>
> I used your site and had it install which was done without my needing
> to fill out anything if I did it right.  It asked me if I wanted to replace
> the
> version that was installed.  I had put in on by the webdisk offered with
> on-rev and it appears to have been poorly copied so needed replaced.
>
> I downloaded the zip file and put it in my public_html folder using the
> webdisk from on-rev.
>
> then I entered the below in my broswer.
>
> http://sundown.on-rev.com/cgi-bin/hello.cgi
>
> instead of taking me to a page with Hello World like your example
> I get an Internal Server Error
>
> Do you have any idea what the problem is?
>
> -=>JB<=-
>
>
>
> On Apr 24, 2009, at 9:22 AM, Andre Garzia wrote:
>
>  Hello Again my Friends,
>>
>> Are you struggling to install the Revolution CGI engine on your On-Rev
>> account? Can't stand cPanel? Don't know what FTP or CHMOD is? Well, well,
>> well, your problems are OVER!
>>
>> With this new handy self contained self distributable self selfish
>> installer, you'll be able to just load a web page and have everything
>> installed.
>>
>> Oh yes, it is that easy!!!
>>
>> http://andregarzia.on-rev.com/installcgi.irev
>>
>> Now enough marketing speak. Let me explain what this does.
>>
>> It first check to see if there's a revolution engine named revolution in
>> your cgi-bin, if so, it does nothing.
>>
>> If there's not, then it get a handy compressed file from my account with
>> revolution engine and database drivers and it unpacks it in your cgi-bin
>> folder
>> it also set the correct permissions and put a simple hello world cgi
>> there.
>>
>> The whole thing is self contained, so once it runs, it generates a zip
>> file
>> and a tar.gz file of itself so that others can download it too.
>>
>> Let us spread CGI love!
>>
>> Now, I allow each of you to click the reinstall option on my server but
>> please don't keep reinstalling my engine, it uses too much carbon and I
>> want
>> a green account
>> Anyway, this installer does not delete anything it only overwrites the
>> file
>> revolution if it is present and you tell it so.
>>
>> Be happy!
>> andre
>>
>> --
>> http://www.andregarzia.com All We Do Is Code.
>> ___
>> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: [ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread -= JB =-

Thanks Andre

I used your site and had it install which was done without my needing
to fill out anything if I did it right.  It asked me if I wanted to  
replace the

version that was installed.  I had put in on by the webdisk offered with
on-rev and it appears to have been poorly copied so needed replaced.

I downloaded the zip file and put it in my public_html folder using the
webdisk from on-rev.

then I entered the below in my broswer.

http://sundown.on-rev.com/cgi-bin/hello.cgi

instead of taking me to a page with Hello World like your example
I get an Internal Server Error

Do you have any idea what the problem is?

-=>JB<=-


On Apr 24, 2009, at 9:22 AM, Andre Garzia wrote:


Hello Again my Friends,

Are you struggling to install the Revolution CGI engine on your On-Rev
account? Can't stand cPanel? Don't know what FTP or CHMOD is? Well,  
well,

well, your problems are OVER!

With this new handy self contained self distributable self selfish
installer, you'll be able to just load a web page and have everything
installed.

Oh yes, it is that easy!!!

http://andregarzia.on-rev.com/installcgi.irev

Now enough marketing speak. Let me explain what this does.

It first check to see if there's a revolution engine named  
revolution in

your cgi-bin, if so, it does nothing.

If there's not, then it get a handy compressed file from my account  
with
revolution engine and database drivers and it unpacks it in your  
cgi-bin

folder
it also set the correct permissions and put a simple hello world  
cgi there.


The whole thing is self contained, so once it runs, it generates a  
zip file

and a tar.gz file of itself so that others can download it too.

Let us spread CGI love!

Now, I allow each of you to click the reinstall option on my server  
but
please don't keep reinstalling my engine, it uses too much carbon  
and I want

a green account
Anyway, this installer does not delete anything it only overwrites  
the file

revolution if it is present and you tell it so.

Be happy!
andre

--
http://www.andregarzia.com All We Do Is Code.
___
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


[ANN] Revolution CGI Engine installation tool for On-Rev accounts

2009-04-24 Thread Andre Garzia
Hello Again my Friends,

Are you struggling to install the Revolution CGI engine on your On-Rev
account? Can't stand cPanel? Don't know what FTP or CHMOD is? Well, well,
well, your problems are OVER!

With this new handy self contained self distributable self selfish
installer, you'll be able to just load a web page and have everything
installed.

Oh yes, it is that easy!!!

http://andregarzia.on-rev.com/installcgi.irev

Now enough marketing speak. Let me explain what this does.

It first check to see if there's a revolution engine named revolution in
your cgi-bin, if so, it does nothing.

If there's not, then it get a handy compressed file from my account with
revolution engine and database drivers and it unpacks it in your cgi-bin
folder
it also set the correct permissions and put a simple hello world cgi there.

The whole thing is self contained, so once it runs, it generates a zip file
and a tar.gz file of itself so that others can download it too.

Let us spread CGI love!

Now, I allow each of you to click the reinstall option on my server but
please don't keep reinstalling my engine, it uses too much carbon and I want
a green account
Anyway, this installer does not delete anything it only overwrites the file
revolution if it is present and you tell it so.

Be happy!
andre

-- 
http://www.andregarzia.com All We Do Is Code.
___
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: suddenly not working -- Rev cgi plus mysql on webhost (DreamHost)

2009-03-26 Thread Nicolas Cueto
Success!

Here's the solution, which I happened to find
in the archives.

First, I replaced the older engine and database
drivers (2.6 they were, I think) with the 2.9 engine
and the database drivers (externals?), i.e.,
revdb.so and dbmysql. All are Linux since that's
what my webhost's server runs, and all get placed
in the same directory I use for rev-cgi work.

(Side note # 1: Still curious about why the 2.6 engine
and the new server set up didn't get along.)

Then, I added the following lines to my rev-cgi script:

  put "/[PATH TO CGI DIRECTORY]/revdb.so" into tExternals
  set the externals of the templatestack to tExternals
  create stack "externals"
  start using stack "externals"
  revSetDatabaseDriverPath "/[PATH TO CGI DIRECTORY]"
  put revOpenDatabase([MYSQL DATABASE PARAMETERS]) into connid
  ##  Do whatever mysql stuff needs doing...
  revCloseDatabase connid
  close stack "externals"

What's important about this is that it first specifies the
path to the database external and then starts up that
external by creating and starting a temporary dummy
stack. This appears to activate the database external
revdb.so, and thus enables any database-related
commands that follow (revSetDatabaseDriverPath,
revOpenDatabase, and so on).

(Side note # 2: Isn't it reasonable to think that as soon
as the Rev engine gets started by the almighty "#!rev -iu"
this would also execute all externals in the same directory
as the engine?)

Glad to see a happy end to days and days of frustration.

-- Nicolas Cueto
___
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: suddenly not working -- Rev cgi plus mysql on webhost (DreamHost)

2009-03-24 Thread Nicolas Cueto
Things still ain't working like they used to, but,
following up on some of the advise here, some
other possibly useful clues have come up.

BTW, perhaps I wasn't clear on this. It's not that
my Rev-cgi setup no longer works.  All my Rev-cgi
scripts still work. What is not working well since
the move to a new server is the "revOpenDatabase"
command.


First, I followed the advise of re-uploading the
engine and database driver (there could've been
some corruption of these during the server move,
I'm told). But, no change. My rev-cgi scripts still
continue to work, except for the mysql connection.

That means that neither the engine nor the database
is the issue, right?


One of the other suggestions here was to check the error
logs on the web-server for my html web-account.

Found these two records repeatedly, each time
immediately after running "revOpenDatabase":


  # [error] Could not open libgdk-x11-2.0.so: libgobject-2.0.so:
 cannot open shared object file: No such file or directory
  # [error] Failed to load dbmysql.so error dbmysql.so: cannot
 open shared object file: No such file or directory


This means that the server setup is missing libraries
that Rev requires, right? And, because those libraries
are missing, Rev can't in turn run the database driver
"dbmysql.so", right?


One other clue. In the Rev development environment,
when my stack tries to connect to get a mysql
connection id number, this is the returned error:

   # Error: Cannot open connection to database revdberr,
  invalid database type

Can I take this to mean that, at the very least, the Rev
database driver (dbmysql.so) I have in my cgi-bin
folder is working correctly?


Thank you.

--
Nicolas Cueto
___
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: suddenly not working -- Rev cgi plus mysql on webhost (DreamHost)

2009-03-23 Thread Richard Gaskin

Nicolas Cueto wrote:

One more possibility. The old server was 32bit,
the new, 64bit. Could that be a problem for the Rev
engine? Geez I hope not!


Probably not.  The only reported issue on the desktop with 64-bit OS is 
a scripting error that checked the version using an old format.  Haven't 
heard of any other issues, none with the engine itself.



The engine version now in my cgi folder is (I think)
2.6.  And yesterday I uploaded the "Standalone"
engine (?) that comes with my Rev 2.9 (in the
Runtime > Linux > x86-32 folder), but not even
my test-cgi script worked with that.

(In the meantime I've contacted the WebHost --
a not very helpful first-reply. Their suggestion?
That I re-compile. Recompile what?!

Does any other RevUser with a Dreamhost
account know of someone there who's familiar
with Rev?)


Dreamhost is my favorite Rev-friendly host.  I also have Rev CGIs 
running on Bluehost and TierraNet, but I do most of my work on my 
Dreamhost accounts.


I don't have a direct contact at DH, but their office isn't far from me 
so I could visit in person if needed. :)


Just curious:  Why did they make the change in the first place?  Did 
they indicate whether they'd be doing this to other servers, or were you 
just lucky?


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
___
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: suddenly not working -- Rev cgi plus mysql on webhost (DreamHost)

2009-03-23 Thread Nicolas Cueto
Thanks for the suggestions so far. But, still no go.

One more possibility. The old server was 32bit,
the new, 64bit. Could that be a problem for the Rev
engine? Geez I hope not!

The engine version now in my cgi folder is (I think)
2.6.  And yesterday I uploaded the "Standalone"
engine (?) that comes with my Rev 2.9 (in the
Runtime > Linux > x86-32 folder), but not even
my test-cgi script worked with that.

(In the meantime I've contacted the WebHost --
a not very helpful first-reply. Their suggestion?
That I re-compile. Recompile what?!

Does any other RevUser with a Dreamhost
account know of someone there who's familiar
with Rev?)

BTW, I wonder when Runtime Revolution's
web-hosting service is coming out... and
will it have mysql support...

-- Nicolas Cueto
___
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: suddenly not working -- Rev cgi plus mysql on webhost (DreamHost)

2009-03-23 Thread Andre Garzia
Nicolas,

what is the first line of your scripts? Those errors usually happen if
you forget the '-ui' in the first line like:

#!./revolution -ui

Cheers
andre

On Mon, Mar 23, 2009 at 3:49 AM, Nicolas Cueto  wrote:
> Thank you, Richard.
>
> Following your advice, I have now checked the error logs. The possible
> source of the problem seems to be that, in the move of my account by
> DreamHost to a new server, a required library was not reinstalled ("Could
> not open libgdk-x11-2.0.so: libgobject-2.0.so: cannot  open shared object
>  file: No such file or directory"). I let DreamHost know about this, and
> am now waiting with my fingers crossed.
>
> --
> Nicolas Cueto
> ___
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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


  1   2   3   4   5   6   7   8   9   10   >