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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |