Honoured monks. Maybe this question is a little off topic, but I'll search for your wisdom anyway, hoping you will forgive me. I have written a counter script to keep track of visitors to my website. I don't want the counter to be visible except on my private statistics-page. I am calling the program through an SSI exec command. The script should not return anything visible to the page that called it. If I do nothing or just sends a 'Html/1.0 204 No response', I get an error in the Apache log about malformed headers or premature end of headers. If I also sends the usual Content-type header I get no error, but then the No Response header is printed on my webpage. How can I avoid this and just have my script executed witout any output to the webpage and no errors in the log.

In reply to Cgi script with no output to webpage? by pot1906dk

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.