dirthurts wrote:
The short answer is that you called die before you sent the content-type header.
So your script is failing there, move the content header up and you will see the error message.
Anonymous Monk Ashley's question was about the internal server errors that
/s?he/ was receiving. The way that your reply to that question was worded,
"the short answer is....<snip>" and
"So your script is failing there" would suggest that the answer to the question is contained, succinctly, within your reply, when indeed it was not.
Furthermore, putting the content-type header before the die statement would have no effect on the output in this script, as Ashley was not outputting the die message to the browser, but to STDERR, which would be captured and written to the webserver's error log.
I, too, am concerned with pointing people in the right direction. I felt that your posts, if anything, would confuse the issue, aside from being technically incorrect.
higle