Re: Routing downloads through PHP

From: Date: Wed, 15 Feb 2006 11:05:20 +0000
Subject: Re: Routing downloads through PHP
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.general 
Request: Send a blank email to php-general+get-230432@lists.php.net to get a copy of this message
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@blah.com 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

« previous php.general (#230432) next »