in reply to Perl CGI on a CD?

Since your data on the CD will be static, I would use the following way :

Write a small, simplish JavaScript search engine, which has the image and search data hardcoded as arrays. The data part of the JavaScript lands in the search.html file in <script> tags, while the "search engine" is in a separate .js file. The database is statically created via a Perl script from your main database, this of course means that you will have to modify the build process for your CDrom and run the magic database creation Perl script before burning the stuff.

This solution would have the benefit that you can also create a static subindex (in HTML) where the images are listed after different criteria, and you essentially become platform independent (that is, as long as you don't use fancy CSS and/or fancy JavaScript).

The other solution would be to burn IndigoPerl and the built-in Apache server on the CD, but then your users would need to start the Apache server before they could access the CD - a suboptimal solution IMO.

  • Comment on You have static data (was: Re: Perl CGI on a CD?)

Replies are listed 'Best First'.
Re: You have static data (was: Re: Perl CGI on a CD?)
by Masem (Monsignor) on Apr 06, 2001 at 17:03 UTC
    Note that if you do go the Javascript route, it may also be worth the effort to make sure that you include a copy of a browser that you know works with that particular JS, unless you are absolutely sure that every user that you will be distributing this CD to has the latest and greatest in browsers. I would figure that with both IE and Netscape, there would be little problem including a copy on such a disk, but you'd have to check their respective companies on that front.
    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain