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

Re: [MacPerl] Server Side Includes



At 12:37 PM 1/27/96, Alan Fry wrote:
>Many thanks to a number of people who pointed out that MacHTTP does not
>support SSI. It appears that NCSA HTTPd and NetSite are the only servers
>which do, and neither is ported to the Macintosh.
>
>How does one call a perl script from a web page in the MacPerl environment?

Get the PCGI extension, and load it into MacPerl.  Write the script in
MacPerl, and then save it as a MacHTTP cgi.  Then just use its url.

>In a "counter" program <http://www.worldwidemart.com/scripts/> the author
>(MattWright) suggests either of the following:
>        <img src="/path/to/script.pl> or (somewhat surprisingly)
>        <body background="ditto...>
>(In that program the count is returned as an odometer-style image using a
>"C" program called "FLY".)
>
>Setting aside the fact that neither is a particularly nice way of calling a
>script, since not all browsers will be set to auto-load images, neither
>method causes even a flicker of interest to a MacPerl cgi/application
>anyway.

Its a fine way to call one.  What do you call a nice way to call one?  Of
course, they need to return images, but hey...

>So what does one do?

Or do what I did.  Make it an action or preprocessor.
The file name that was requested will be in the var $ENV{'SCRIPT_NAME'}
(Virtual path).

I'd look into frontier.  Writing it in MacPerl was a waste of time for me.
Now that I have learned some frontier, I am writing an ssi type package
that i'll release in the next week or so.  So far, its pretty darn fast,
and very powerful.


Shawn.

######################################################################
#  In Jersey: The Digital Information Network of the Garden State    #
#      Freelance HTML/Graphics/Programmer                            #
######################################################################
#             http://puma.bevd.blacksburg.va.us/~spearce/            #
# http://nj5.injersey.com/~spearce/  ###  http://www.injersey.com/   #
######################################################################