Also don't forget to print a http header before printing any content.
In reply to Re: creating an error message by rhesa in thread creating an error message by Anonymous Monk