Under Apache, scripts with a name that starts with "nph-" are handled as no-parse-header scripts. Apache doesn't wait to process their output, but rather sends it directly through from your script as you produce it. This was the clasic way of showing activity from a script that produced output over a long period.
The cost, besides the odd name prefix, was that you had to supply all the headers. As I remember, all you need is to output two additional lines at the beginning:
Content Type: text/html
[blank line]
(The blank line is important.)
I'm not at a computer where I can check this, but I'm sure someone else will add a correction if I remember it wrong, and I can check it in the morning.
I checked this morning, the headers are all provided by CGI.pm. Use
$q = new CGI;
print $q-header();
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.