[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] test a cgi script



At 23.03 -0500 1999.12.06, Johnson City Alliance Church wrote:
My problem is this: while trying to run a cgi script I found on a web site,
I succeeded in crashing my host's server. This resulted in my host telling
me that if I ran that script again they would disable my cgi-bin. Well . .
. this naturally has caused me to have much concern over putting any other
scripts into my cgi-bin and trying to use them. So . . . I want to be able
to test a script without being connected to the internet to make certain
that it works all right on my web site.

My question is this: Is it possible to simply use MacPerl to take the place
of the pointer to usr/bin/perl so that I can determine whether a script is
going to bomb out? I tried to just insert the path in one of my scripts to
point to my local copy of macperl but obviously it didn't work. Am I biting
off more than I can chew? Is there a simple solution or is it going to be
really complex?

Thanks for any info that you can pass along to me. I'm trying to learn but
the more I get into this, the more involved things become.

1.  There is a list designed just for CGI and MacPerl.  See
http://www.macperl.org/ for more information.

2.  You need to save the script as a CGI Script from MacPerl to use it as a
CGI on your machine.  Find out more from the MacPerl book, which is
available in hard copy and online.  See http://www.macperl.com/ptf_book/
for more information.

3.  If you are using the CGI.pm extension, which is usually the best thing
to use, then you can debug CGI programs directly from the MacPerl
application.  Read the docs for CGI.pm for more information (if MacPerl and
Shuck are installed properly, hit cmd-L in Shuck and type "CGI").

Good luck,

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org