It's missing DOCUMENT_ROOT for one. Also the raw query string.

I have this simple script, that resides in cgi-bin. It gets used via an ssi include directive.

The script makes thumbnails and returns html listing thumbnail links to the larger images. It's nifty. All the user has to do is make a shtml page and put this <!--#exec cgi="/cgi-bin/gallery"-->

That one ssi call in that one page runs the whole gallery. The web designer does not need to do anything else to the page. They don't have to make new pages.

The gallery script determines where it was called from via ENV DOCUMENT_URI, or REQUEST_URI .
The thumbnails links rendered simply go to $current_http_path?file=x , where x is a number for which file is to be picked.

If "file" is set, then the gallery script knows that the request is for a picture to be shown med size, not for a view of the whole gallery.

Comments (stored with storable) and thumbnails are stored off http accessible path

Never had a problem with this on another box.

What I am showing you there is ENV straight from a perl compiled script. It's set up for php, zend. That's why it looks goofy.


In reply to Re^2: OT: would this ENV setup make you blow your lid too? by leocharre
in thread OT: would this ENV setup make you blow your lid too? by leocharre

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.