Re: lesson to learn CGIs

2009-04-24 Thread -= JB =-
Thanks for all the info, Jacque.  I am using a Mac and just got it  
installed
with a file from Andre.  The information is still very useful and  
thanks again.


-=>JB<=-


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


-= JB =- wrote:

Does it make a difference if you chmod 755 it before you FTP?
I know a little about FTP and have Captain FTP.  Is the on-rev
FTP already turned on?


You can't do that, it has to be done on the server. And yes, FTP is  
ready to use.


You are correct that CGI is a different way to use the engine than  
the new on-rev scripting, and it does allow you to use stacks as  
libraries, which on-rev does not (or at least, not yet) so you're  
on the right track using the old-style CGI method if you want to  
use stacks. Here's a recap of some things that may be causing  
problems:


1. If you are trying to use CGI on your on-rev web space, it's  
Linux. You need to copy the Linux engine over there. It doesn't  
matter what your home machine is; you need the engine that matches  
the server OS. The engine and all your scripts must go into the cgi- 
bin folder.


2. Before uploading, use BBEdit or a similar editor to set all your  
script line endings to unix line endings. Again, that's because the  
server is Linux. The machine you use to create the files is  
immaterial; you need to match the server OS.


3. The declaration at the top of each script must match the name of  
the engine in your cgi-bin folder. My tutorial uses "revolution"  
but personally I generally just use "rev" because it's shorter and  
I'm lazy. It doesn't matter what you name the Rev engine on the  
server -- it could be "xlzy" if you want -- as long as every script  
you upload has the exact same engine declaration at the top.  
Capitalization matters, so check that. Also make sure that every  
script you use has a blank line under the engine declaration --  
that's required.


4. Upload using an FTP client if possible. I have used the webDAV  
method too, but it copies separate resouce forks to the server  
which are useless on Linux (those are the files that start with  
"_.". You can delete those from the server without any problem.)  
But using a dedicated FTP app, those extra files never get copied  
to the server in the first place. Also, an FTP app allows me to set  
file permissions easily.


5. Once you have everything on the server, go down the list of each  
newly-uploaded file and set its permissions to 755. In general you  
can't do this with the Mac "get info" box, you need terminal or an  
FTP client. That's another good reason to use a dedicated FTP app.


I did an experiment the other day to see if CGI worked with the on- 
rev servers and it works great. I dumped a copy of the linux engine  
into the cgi-bin folder, copied over the "echo.mt" test script, set  
permissions on both to 755, and bingo, it worked immediately. No  
missing library errors either, which is a big problem on many other  
hosting services. On-rev "just works", to steal a phrase. ;)


--
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: lesson to learn CGIs

2009-04-24 Thread J. Landman Gay

-= JB =- wrote:

Does it make a difference if you chmod 755 it before you FTP?
I know a little about FTP and have Captain FTP.  Is the on-rev
FTP already turned on?


You can't do that, it has to be done on the server. And yes, FTP is 
ready to use.


You are correct that CGI is a different way to use the engine than the 
new on-rev scripting, and it does allow you to use stacks as libraries, 
which on-rev does not (or at least, not yet) so you're on the right 
track using the old-style CGI method if you want to use stacks. Here's a 
recap of some things that may be causing problems:


1. If you are trying to use CGI on your on-rev web space, it's Linux. 
You need to copy the Linux engine over there. It doesn't matter what 
your home machine is; you need the engine that matches the server OS. 
The engine and all your scripts must go into the cgi-bin folder.


2. Before uploading, use BBEdit or a similar editor to set all your 
script line endings to unix line endings. Again, that's because the 
server is Linux. The machine you use to create the files is immaterial; 
you need to match the server OS.


3. The declaration at the top of each script must match the name of the 
engine in your cgi-bin folder. My tutorial uses "revolution" but 
personally I generally just use "rev" because it's shorter and I'm lazy. 
It doesn't matter what you name the Rev engine on the server -- it could 
be "xlzy" if you want -- as long as every script you upload has the 
exact same engine declaration at the top. Capitalization matters, so 
check that. Also make sure that every script you use has a blank line 
under the engine declaration -- that's required.


4. Upload using an FTP client if possible. I have used the webDAV method 
too, but it copies separate resouce forks to the server which are 
useless on Linux (those are the files that start with "_.". You can 
delete those from the server without any problem.) But using a dedicated 
FTP app, those extra files never get copied to the server in the first 
place. Also, an FTP app allows me to set file permissions easily.


5. Once you have everything on the server, go down the list of each 
newly-uploaded file and set its permissions to 755. In general you can't 
do this with the Mac "get info" box, you need terminal or an FTP client. 
That's another good reason to use a dedicated FTP app.


I did an experiment the other day to see if CGI worked with the on-rev 
servers and it works great. I dumped a copy of the linux engine into the 
cgi-bin folder, copied over the "echo.mt" test script, set permissions 
on both to 755, and bingo, it worked immediately. No missing library 
errors either, which is a big problem on many other hosting services. 
On-rev "just works", to steal a phrase. ;)


--
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: lesson to learn CGIs

2009-04-24 Thread -= JB =-

Does it make a difference if you chmod 755 it before you FTP?
I know a little about FTP and have Captain FTP.  Is the on-rev
FTP already turned on?

-=>JB<=-


On Apr 24, 2009, at 8:20 AM, Andre Garzia wrote:


Hello Folks,

The Revolution CGI engine is not pre installed on on-rev. You need  
to upload
it there, to the cgi-bin folder and chmod 755 it. A webdisk, I  
think is a
WebDAV volume like an iDisk, still, the on-rev account support ftp  
access
and ftp supports chmoding. I find WebDAV a novel thing which I  
never use.

Best go with FTP.

:D

On Fri, Apr 24, 2009 at 12:04 PM, Richard Gaskin  

wrote:



-= JB =- wrote:


For some reason I thought the executable was supposed to be in the
 library folder
on my hard drive.  Also you are right it was not properly renamed to
 revolution.  It
seems I forgot that part after I had trouble finding it.

As for uploading the engine file which I assume is the  
executable  renamed

to revolution
I was simply transferring it using the webdisk like I would move   
files on

my hard drive.

What is the proper way to install it?



Is this on your On-Rev account?

If so, I don't believe you need to install the Rev CGI at all; it  
should be
pre-installed, so all you'd need is the path to the engine, which  
should be

described in your signup docs or online help for On-Rev.

If not, what is webdisk?  If it's an FTP client, does it offer a  
choice

between text and binary transfer modes?

I've seen some FTP clients read the first few bits of the Rev  
engine, see
that it's ASCII, and try to use text mode, which will convert line  
endings
which may be fine for text files but will break the engine, since  
of course

the engine's object code is binary.

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





--
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: lesson to learn CGIs

2009-04-24 Thread -= JB =-

Thanks Richard

I am sure I probably read it in the signup dpcs or somewhere but then
having it all be new it is easy to be learning things I don't need  
and in

fact can't use in that way.

-=>JB<=-


On Apr 24, 2009, at 8:04 AM, Richard Gaskin wrote:


-= JB =- wrote:
For some reason I thought the executable was supposed to be in  
the  library folder
on my hard drive.  Also you are right it was not properly renamed  
to  revolution.  It

seems I forgot that part after I had trouble finding it.
As for uploading the engine file which I assume is the executable   
renamed to revolution
I was simply transferring it using the webdisk like I would move   
files on my hard drive.

What is the proper way to install it?


Is this on your On-Rev account?

If so, I don't believe you need to install the Rev CGI at all; it  
should be pre-installed, so all you'd need is the path to the  
engine, which should be described in your signup docs or online  
help for On-Rev.


If not, what is webdisk?  If it's an FTP client, does it offer a  
choice between text and binary transfer modes?


I've seen some FTP clients read the first few bits of the Rev  
engine, see that it's ASCII, and try to use text mode, which will  
convert line endings which may be fine for text files but will  
break the engine, since of course the engine's object code is binary.


--
 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: lesson to learn CGIs

2009-04-24 Thread Andre Garzia
Hello Folks,

The Revolution CGI engine is not pre installed on on-rev. You need to upload
it there, to the cgi-bin folder and chmod 755 it. A webdisk, I think is a
WebDAV volume like an iDisk, still, the on-rev account support ftp access
and ftp supports chmoding. I find WebDAV a novel thing which I never use.
Best go with FTP.

:D

On Fri, Apr 24, 2009 at 12:04 PM, Richard Gaskin  wrote:

> -= JB =- wrote:
>
>> For some reason I thought the executable was supposed to be in the
>>  library folder
>> on my hard drive.  Also you are right it was not properly renamed to
>>  revolution.  It
>> seems I forgot that part after I had trouble finding it.
>>
>> As for uploading the engine file which I assume is the executable  renamed
>> to revolution
>> I was simply transferring it using the webdisk like I would move  files on
>> my hard drive.
>>
>> What is the proper way to install it?
>>
>
> Is this on your On-Rev account?
>
> If so, I don't believe you need to install the Rev CGI at all; it should be
> pre-installed, so all you'd need is the path to the engine, which should be
> described in your signup docs or online help for On-Rev.
>
> If not, what is webdisk?  If it's an FTP client, does it offer a choice
> between text and binary transfer modes?
>
> I've seen some FTP clients read the first few bits of the Rev engine, see
> that it's ASCII, and try to use text mode, which will convert line endings
> which may be fine for text files but will break the engine, since of course
> the engine's object code is binary.
>
> --
>  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
>



-- 
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: lesson to learn CGIs

2009-04-24 Thread Richard Gaskin

-= JB =- wrote:
For some reason I thought the executable was supposed to be in the  
library folder
on my hard drive.  Also you are right it was not properly renamed to  
revolution.  It

seems I forgot that part after I had trouble finding it.

As for uploading the engine file which I assume is the executable  
renamed to revolution
I was simply transferring it using the webdisk like I would move  
files on my hard drive.


What is the proper way to install it?


Is this on your On-Rev account?

If so, I don't believe you need to install the Rev CGI at all; it should 
be pre-installed, so all you'd need is the path to the engine, which 
should be described in your signup docs or online help for On-Rev.


If not, what is webdisk?  If it's an FTP client, does it offer a choice 
between text and binary transfer modes?


I've seen some FTP clients read the first few bits of the Rev engine, 
see that it's ASCII, and try to use text mode, which will convert line 
endings which may be fine for text files but will break the engine, 
since of course the engine's object code is binary.


--
 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: lesson to learn CGIs

2009-04-24 Thread -= JB =-
I have downloaded Andre's files and can get them to work without any  
problems.
Yes, I am new to all of this so maybe the wording is confusing me.   
Andre said

his was the First On-Rev based CMS and Blog. Jacque has a lesson on CGI
which stands for Computer Gateway Interface.  For some reason I was  
thinking
these were two different ways of accessing the web and using  
Revolution.  I
was thinking the CGI gives you more ability to use Rev stacks and  
scripts and

Andre's was not actually using the engine so no need to install it.

-=>JB<=-


On Apr 24, 2009, at 3:33 AM, Kay C Lan wrote:

On Fri, Apr 24, 2009 at 6:06 PM, -= JB =-   
wrote:




As for uploading the engine file which I assume is the executable  
renamed

to revolution
I was simply transferring it using the webdisk like I would move  
files on

my hard drive.

What is the proper way to install it?



Again, I maybe off track here, but if you are doing this with on- 
rev I don't
think it is required. The reason for on-rev is to provide the  
environment to

you ready to go.

As far as I understand, only if you already had a site up an  
running on

another host and transferring it to on-rev would you need to use the
'classic' cgi engine etc. If you are starting from scratch, and  
this is all

new to you, which I get the impression it is because you say you 'are
learning from Jacques  lessons' then as you've already seen Andre's  
blog
example, and I believe you have downloaded his tg.zip file so as  
far as I
know all you need to do is amend these to your needs then transfer  
them to
your jb.on-rev.com domain and things should work. Hopefully Andre  
will step
in here but I don't think he installed the rev engine to get his  
site to

work.

Note, as far as using the webdisk is concerned I did notice on the  
on-rev
forums that someone mentioned some trouble with it, particularly if  
you were
transfering a folder full of files. Might need to check to see if  
it's OK to

just do one file at a time.

HTH
___
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: lesson to learn CGIs

2009-04-24 Thread Kay C Lan
On Fri, Apr 24, 2009 at 6:06 PM, -= JB =-  wrote:

>
> As for uploading the engine file which I assume is the executable renamed
> to revolution
> I was simply transferring it using the webdisk like I would move files on
> my hard drive.
>
> What is the proper way to install it?
>

Again, I maybe off track here, but if you are doing this with on-rev I don't
think it is required. The reason for on-rev is to provide the environment to
you ready to go.

As far as I understand, only if you already had a site up an running on
another host and transferring it to on-rev would you need to use the
'classic' cgi engine etc. If you are starting from scratch, and this is all
new to you, which I get the impression it is because you say you 'are
learning from Jacques  lessons' then as you've already seen Andre's blog
example, and I believe you have downloaded his tg.zip file so as far as I
know all you need to do is amend these to your needs then transfer them to
your jb.on-rev.com domain and things should work. Hopefully Andre will step
in here but I don't think he installed the rev engine to get his site to
work.

Note, as far as using the webdisk is concerned I did notice on the on-rev
forums that someone mentioned some trouble with it, particularly if you were
transfering a folder full of files. Might need to check to see if it's OK to
just do one file at a time.

HTH
___
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: lesson to learn CGIs

2009-04-24 Thread -= JB =-

Thanks for the info RIchard.

For some reason I thought the executable was supposed to be in the  
library folder
on my hard drive.  Also you are right it was not properly renamed to  
revolution.  It

seems I forgot that part after I had trouble finding it.

As for uploading the engine file which I assume is the executable  
renamed to revolution
I was simply transferring it using the webdisk like I would move  
files on my hard drive.


What is the proper way to install it?

-=>JB<=-


On Apr 24, 2009, at 12:46 AM, Richard Gaskin wrote:

I just pasted your script into a new TextEdit document, saved it,  
uploaded it, and it works.


Are you sure the executable is named "revolution" on the server?

Did you upload the engine file using text or binary transfer mode?

--
 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: lesson to learn CGIs

2009-04-24 Thread Richard Gaskin

-= JB =- wrote:

> On Apr 23, 2009, at 11:11 PM, Jim Sims wrote:
>> On Apr 24, 2009, at 7:59 AM, -= JB =- wrote:
>>> 1.  Are the line endings done in the script above with & cr & cr
>>> or am I
>>> somehow supposed to set them in TextEdit?  I am using Mac OS X so
>>> if I am right the line ending should be Unix which is a line
>>> feed.  That
>>> would mean replace & cr & cr with & lf.
>>
>> Perhaps it refers to how you save the file itself. I use BBEdit a
>> lot and can save files as either Macintosh, Unix, or DOS. I save it
>> as Unix and then upload to the server.
>
> That is what I was wondering but in TextEdit I didn't see those
> options.
> Maybe I should be using BBEdit to save it properly.

I just pasted your script into a new TextEdit document, saved it, 
uploaded it, and it works.


Are you sure the executable is named "revolution" on the server?

Did you upload the engine file using text or binary transfer mode?

--
 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: lesson to learn CGIs

2009-04-23 Thread -= JB =-

Thanks!

-=>JB<=-


On Apr 23, 2009, at 11:41 PM, stephen barncard wrote:

Don't forget the free Komodo Edit. A really good editor now at  
version 5.1

http://www.activestate.com/komodo_edit/

-
Stephen Barncard
San Francisco
http://barncard.com


2009/4/23 -= JB =- 

That is what I was wondering but in TextEdit I didn't see those  
options.

Maybe I should be using BBEdit to save it properly.

-=>JB<=-



On Apr 23, 2009, at 11:11 PM, Jim Sims wrote:



On Apr 24, 2009, at 7:59 AM, -= JB =- wrote:

 1.  Are the line endings done in the script above with & cr & cr  
or am I

somehow supposed to set them in TextEdit?  I am using Mac OS X so
if I am right the line ending should be Unix which is a line  
feed.  That

would mean replace & cr & cr with & lf.



Perhaps it refers to how you save the file itself. I use BBEdit a  
lot and
can save files as either Macintosh, Unix, or DOS. I save it as  
Unix and then

upload to the server.

sims

s...@ezpzapps.com
Skype:   sims.jim
iChat:   techietours
__
Opportunity by Design




___
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



___
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: lesson to learn CGIs

2009-04-23 Thread stephen barncard
Don't forget the free Komodo Edit. A really good editor now at version 5.1
http://www.activestate.com/komodo_edit/

-
Stephen Barncard
San Francisco
http://barncard.com


2009/4/23 -= JB =- 

> That is what I was wondering but in TextEdit I didn't see those options.
> Maybe I should be using BBEdit to save it properly.
>
> -=>JB<=-
>
>
>
> On Apr 23, 2009, at 11:11 PM, Jim Sims wrote:
>
>
>> On Apr 24, 2009, at 7:59 AM, -= JB =- wrote:
>>
>>  1.  Are the line endings done in the script above with & cr & cr or am I
>>> somehow supposed to set them in TextEdit?  I am using Mac OS X so
>>> if I am right the line ending should be Unix which is a line feed.  That
>>> would mean replace & cr & cr with & lf.
>>>
>>
>> Perhaps it refers to how you save the file itself. I use BBEdit a lot and
>> can save files as either Macintosh, Unix, or DOS. I save it as Unix and then
>> upload to the server.
>>
>> sims
>>
>> s...@ezpzapps.com
>> Skype:   sims.jim
>> iChat:   techietours
>> __
>> Opportunity by Design
>>
>>
>>
>>
>> ___
>> 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: lesson to learn CGIs

2009-04-23 Thread -= JB =-

That is what I was wondering but in TextEdit I didn't see those options.
Maybe I should be using BBEdit to save it properly.

-=>JB<=-


On Apr 23, 2009, at 11:11 PM, Jim Sims wrote:



On Apr 24, 2009, at 7:59 AM, -= JB =- wrote:

1.  Are the line endings done in the script above with & cr & cr  
or am I

somehow supposed to set them in TextEdit?  I am using Mac OS X so
if I am right the line ending should be Unix which is a line  
feed.  That

would mean replace & cr & cr with & lf.


Perhaps it refers to how you save the file itself. I use BBEdit a  
lot and can save files as either Macintosh, Unix, or DOS. I save it  
as Unix and then upload to the server.


sims

s...@ezpzapps.com
Skype:   sims.jim
iChat:   techietours
__
Opportunity by Design




___
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: lesson to learn CGIs

2009-04-23 Thread Jim Sims


On Apr 24, 2009, at 7:59 AM, -= JB =- wrote:

1.  Are the line endings done in the script above with & cr & cr or  
am I

somehow supposed to set them in TextEdit?  I am using Mac OS X so
if I am right the line ending should be Unix which is a line feed.   
That

would mean replace & cr & cr with & lf.


Perhaps it refers to how you save the file itself. I use BBEdit a lot  
and can save files as either Macintosh, Unix, or DOS. I save it as  
Unix and then upload to the server.


sims

s...@ezpzapps.com
Skype:   sims.jim
iChat:   techietours
__
Opportunity by Design




___
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: lesson to learn CGIs

2009-04-23 Thread -= JB =-
I thought I did everything right but I can't get it to work.   
Possibly the problem

is the proper line ending.  The lesson says,

Open any text editor and paste the following script into it. Remember  
to set the line endings appropriately for the server's OS.


#!revolution -ui

on startup
  put "Content-Type: text/plain" & cr & cr
  put "Hello World!"
end startup

Save the text file as "hello.cgi" and copy it to the cgi folder on  
the server. Set its file permissions to 755.


My questions:

1.  Are the line endings done in the script above with & cr & cr or am I
somehow supposed to set them in TextEdit?  I am using Mac OS X so
if I am right the line ending should be Unix which is a line feed.  That
would mean replace & cr & cr with & lf.

2.  When local host is mentioned does that mean mydomain.on-rev.com?

This seems so simple I shouldn't be having problems.  I couldn't get the
cgi echo.mt to work either.

-=>JB<=-


___
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: lesson to learn CGIs

2009-04-23 Thread -= JB =-

Got it.  Thank you.

-=>JB<=-


On Apr 23, 2009, at 8:18 PM, Kay C Lan wrote:

On Fri, Apr 24, 2009 at 10:49 AM, -= JB =-   
wrote:




My problem is I cannot find the Standalone.app application  
bundle.  Could

someone please
tell me where it is so I can install it.

Haven't played with CGI but based on the following assumptions  
this should

help: You are using Revolution Studio, Version 3.5, but your Server is
running Windows

Navigate to your Revolution Studio folder, then the 3.5.0-gm-1  
folder, then
the Runtime folder, then as the Server is Windows, go to the  
Windows folder,

then x86-32 folder and duplicate the Standalone file.

The Note about OS X packages is, if your Server is OS X, then  
instead of
selecting the Windows folder you'd select the Mac OS X folder,  
again the
x86-32 folder, BUT instead of duplicating the Standalone app, contrl 
+click
on it to Show Package Contents, once inside, click on the Contents  
folder,

then the MacOS folder and duplicate the Standalone file.

CAUTION: make sure you duplicate the file NOT move it, if you move  
it you

may have trouble builiding Standalone applications

HTH
___
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: lesson to learn CGIs

2009-04-23 Thread Kay C Lan
On Fri, Apr 24, 2009 at 10:49 AM, -= JB =-  wrote:

>
> My problem is I cannot find the Standalone.app application bundle.  Could
> someone please
> tell me where it is so I can install it.
>
> Haven't played with CGI but based on the following assumptions this should
help: You are using Revolution Studio, Version 3.5, but your Server is
running Windows

Navigate to your Revolution Studio folder, then the 3.5.0-gm-1 folder, then
the Runtime folder, then as the Server is Windows, go to the Windows folder,
then x86-32 folder and duplicate the Standalone file.

The Note about OS X packages is, if your Server is OS X, then instead of
selecting the Windows folder you'd select the Mac OS X folder, again the
x86-32 folder, BUT instead of duplicating the Standalone app, contrl+click
on it to Show Package Contents, once inside, click on the Contents folder,
then the MacOS folder and duplicate the Standalone file.

CAUTION: make sure you duplicate the file NOT move it, if you move it you
may have trouble builiding Standalone applications

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