21 messages in org.perl.beginners-cgiRE: Running CGIs offline
FromSent OnAttachments
Timo...@hmco.comJul 22, 2002 10:05 am 
Scot RobnettJul 22, 2002 10:18 am 
Hughes, AndrewJul 22, 2002 10:22 am 
David T-GJul 22, 2002 11:07 am 
Bob ShowalterJul 22, 2002 11:12 am 
David T-GJul 22, 2002 11:21 am 
Scot RobnettJul 22, 2002 11:47 am 
tomm...@another.comJul 23, 2002 2:35 am 
tom...@sonofagun.co.ukJul 23, 2002 2:35 am 
Scot RobnettJul 23, 2002 8:25 am 
Bob ShowalterJul 23, 2002 8:33 am 
Timo...@hmco.comJul 23, 2002 8:54 am 
Timo...@hmco.comJul 23, 2002 9:19 am 
Naika - EV1Jul 23, 2002 2:24 pm 
Omar ShariffJul 24, 2002 6:02 am 
Connie ChanJul 24, 2002 9:27 am 
Bob ShowalterJul 24, 2002 9:27 am 
Omar ShariffJul 24, 2002 9:49 am 
Hytham ShehabJul 26, 2002 4:26 am 
Octavian RasnitaJul 26, 2002 7:26 pm 
Hytham ShehabJul 27, 2002 4:19 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: Running CGIs offlineActions...
From:Timo...@hmco.com (Timo@hmco.com)
Date:Jul 23, 2002 9:19:10 am
List:org.perl.beginners-cgi

Aha! This seems to be the answer. Check out MicroWeb, a PC product that promises to "Create a working web site on a CD-ROM." It's from the same company as IndigoPERL.

http://www.indigostar.com/microweb.htm

Still no Mac solution, alas.

Timothy_Spalding@ hmco.com To: "Scot Robnett"
<sc@insiteful.tv> cc: begi@perl.org,
tom@sonofagun.co.uk 07/23/2002 11:54 Subject: RE: Running CGIs
offline AM

Right. I have a deep faith that a skilled Unix hacker could run CGIs on a toaster. But I'm looking for something for someone who has trouble running toast on a toaster.

Here's something one could do, at least with MacPerl

1. create Macperl runtime 2. have the HTML link to this runtime 3. the runtime writes an HTML page 4. the runtime launches the document it wrote, dumping it in the browser

I presume the same sort of thing can work on a PC, but I don't find this a very elegant or robust way of doing things. For another thing, how do you send information from the browser (ie. a form), and have the Perl runtime *receive* it. If all you can do it trigger imput-less scripts, you might as well not do it. The only way I could think of doing it would be if the HTML put the form response into the URL, and the Perl runtime *read the browser's history file*. How's that for a way-off idea?

To open the problem somewhat, I want to produce a CD based on HTML, which interacts easily with locally-stored files. Javascript and Java applets have sandboxes. Server-side PERL can read and write files to its heart's content, and I like writing it. On the other hand a Perl interpreter browser plug-in, would probably raise security problems.

Thanks for all these great comments, Tim

"Scot Robnett"

<scot@insiteful.t To: <tom@sonofagun.co.uk>, <begi@perl.org> v> cc:

Subject: RE: Running CGIs offline 07/23/2002 11:26

AM

Although these are good suggestions, I think they miss the original intention. We were looking for something that we could distribute on CD and have it run, regardless of whether the user had Perl or a web server installed on their workstation. And then Bob Showalter said:

-----Original Message----- From: Bob Showalter Sent: Monday, July 22, 2002 1:13 PM Subject: RE: Running CGIs offline

HTTP::Daemon, part of Bundle::libwww

Scot R. inSite

-----Original Message----- From: tom@sonofagun.co.uk [mailto:tom@sonofagun.co.uk] Sent: Tuesday, July 23, 2002 4:36 AM To: begi@perl.org Subject: RE: Running CGIs offline

Not sure what you're after, but to run CGI's offline, you can just:

1) Install a Perl distribution (Indigo Perl or Active Perl are simple) 2) Whack Apache on your box (comes as binary for most OS's) - I found the Bindows version simple to install and run. - Just tell it where your perl install is, etc.

It was all so simple I can't really remember exactly and away you go: 'http://localhost/cgi-bin/script.pl' Never look back.

Obviously there are still a few differences between running locally and on a live webserver, but it's a step closer...

HTH someone, TommyGun.

-----Original Message----- From : Scot Robnett <sc@insiteful.tv> To : David T-G <davi@justpickone.org>; perl beginners cgi <begi@perl.org> CC : Bob Showalter <Bob_@taylorwhite.com>Date : 22 July 2002 19:48:17 Subject : RE: Running CGIs offline Just a note to throw in my own WOOOHOOOO!!!! :)

Gotta try it.

Scot R. inSite

-----Original Message----- From: David T-G [mailto:davi@justpickone.org] Sent: Monday, July 22, 2002 1:22 PM To: perl beginners cgi Cc: Bob Showalter Subject: Re: Running CGIs offline

Bob, et al --

....and then Bob Showalter said... % % > -----Original Message----- % > From: David T-G [mailto:davi@justpickone.org] .... % > You know, it never hurts to check CPAN; maybe someone has % > already written % > a little web server in perl :-) % % HTTP::Daemon, part of Bundle::libwww

Way cool. Awesome. I should have looked myself :-) but it only occurred to me as I was answering him. Can't wait to install this sucker; this'll be good.

Thanks! & HAND

:-D -- David T-G * It's easier to fight for one's principles (play) davi@justpickone.org * than to live up to them. -- fortune cookie (work) davi@justpickone.org http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!