Barry wrote:
Technically:
PHP is server sided, so anything that is sended to browser like HTML
output is output.
Any output in text format sended to the browser (HTML headers and such)
will be recognized as normal output.
The header you set with header() is a HTTP header not HTML header.
that's why it wasn't working.
Well a 500 error is an internal error so probably your php isnt running
as it has to, probably because it is parsed through cgi or such.*shrug*
By the way, you dont have to add the HTML tags.
You just need plain PHP.
Oh, ok. I've now removed the HTML (but still getting a 500 error)
Misconfigured server?
What server do you use?
What PHP version?
Barry
Apache 1.3.34, with PHP 4.4.1.
Here's the exact 500 error I'm getting:
----
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmaster@xxxxxxxx and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request.
----
Thanks,
J_K9
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php