in reply to creating an error message
Also don't forget to print a http header before printing any content.