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

[MacPerl] Server Side Includes



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?

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.

So what does one do?

Alan Fry
ajf@afco.demon.co.uk