Okay, Gramps, I know that you're really more clever than me on average, so I must be missing something... :)

Why would a web-data provider want to put html files in the cgi-bin directory? And/or why would a browser user find it more attractive to use a url like "www.hostname.xxx/cgi-bin/somepage.html", as opposed to something like "www.hostname.xxx/somepurpose/somepage.html" or just "www.hostname.xxx/sompage.html"?

On a unix-based web server, wouldn't a cgi-bin/foo.html file need to be flagged (chmod) executable? And/or would the web-server's config file need some tweak that enables *.html files to be treated as executable code? I don't doubt that the technique shown here is working for you, but I wonder if there might be some "issues" you haven't discussed that others might trip over.


In reply to Re: Perl header to serve up a .HTML file from a CGI directory by graff
in thread Perl header to serve up a .HTML file from a CGI directory by GrandFather

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.