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

Re: [MacPerl] Target frames (more...)



On Thu, 23 May 1996 al071@mdx.ac.uk wrote:
[...]
> So unless I am terribly mistaken, the mac-perl list is the right place to
> address my questions and hopefully get some help.
> 
> Some mac-perl questions then:

Well, since I'm going to attempt to start the MacPerl CGI FAQ, I should 
probably try to answer some of these, huh? d:)

> 1) When saving a script as an MacHTTP acgi, do I have to install MacPerl in
> the cgi directory? 

No. MacPerl can be wherever you want it to be. In fact, I'd argue
*against* putting it in the cgi directory or anywhere within your
webserver hierarchy just on general principles. While I don't believe
that this poses a security risk on Mac systems, in general, placing the
perl executable in cgi-bin can be a huge security hole. See
<URL:http://www.perl.com/perl/news/latro-announce.html> for details. 

> 2) I've noticed in several cgi scripts posted here that the statement
> $ENV{'Request_Method'} etc, 
> is also writen with double qouotes ("Request_Method"). Is it that double 
> qouotes are used for MacPerl? > 

No, you can use single or double quotes for that. MacPerl is no different 
than regular Perl in terms of quoting.

> For those of you who take the time to check Crocker's code:
> What I'm trying to do is use Sandra Silcot's adaptation of Stece Brenner's
> cgi-lib. That lib (cgi-mac-lib) was posted by Sandra Silcot on 7 Aug 1995,
> as a working example for acgi scripting.

You may want to consider getting the newest version of Steve Brenner's 
cgi-lib from <URL:http://www.bio.cam.ac.uk/web/form.html> and porting 
that. Sandra's changes were pretty small and you should be able to replicate
them in the new version.

> Sandra asks all us newbies to "...install Matthias' CGI glue first...".
> I know I'm terrible but I don't understand which file she is reffering to.

She is referring to a MacPerl Extension which allows you to save your 
scripts as MacHTTP/WebStar/NetPresenz CGIs. The MacBinary version is at
<URL:ftp://err.ethz.ch/pub/neeri/MacPerlBeta/PCGI.sit.bin> and a BinHex 
version is at <URL:ftp://err.ethz.ch/pub/neeri/MacPerlBeta/PCGI.sit.hqx>.

-Dave 

Big Dave Schmitt        University of Md Baltimore County   (__)   
Math major / CS minor / SGA Senator / UCS Client Services   (oo)------\ 
dschmi1@umbc.edu        http://umbc.edu/%7Edschmi1/          \/      | \
Don't blame UMBC or UCS for the opinions stated above.        ||---w||  *