Re: PHP 5.2.1: Some scripts are being parsed, but most aren't
| From: | Myron Turner | Date: | Wed, 28 Mar 2007 15:56:35 +0000 |
| Subject: | Re: PHP 5.2.1: Some scripts are being parsed, but most aren't | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251547@lists.php.net to get a copy of this message | ||
Zoltán Németh wrote:
2007. 03. 28, szerda keltezéssel 14.42-kor Mario Guenterberg ezt írta:I think you have to keep in mind that the headers would not affect the actual content being sent to the browser from the server. If the script is parsed as php on the server, it will be sent as text/html to the browser and displayed as parsed. But if the server does not parse the script then the browser will receive a copy of the script itself and depending then on whether the browser recognizes the content-type as displayable, it will either display it or ask if you want to download it. -- _____________________ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/On Wed, Mar 28, 2007 at 07:20:37AM -0500, Myron Turner wrote:the download window is maybe because of incorrect content-type headers. it is possible that the older browser does not take care about that header, so the content is displayed ok, but the newer browser reads the header, cannot interpret it and so offers the download window check out what headers are the script is sending out greets Zoltán Némethold mozilla works fine with the same script. Firefox pop up a download window. The script is well formed, <?php ?> tags are included. I would not be surprised when I see the source of the script in firefox. But a download window???It's hard to see how this could be a browser issue. Firefox does not parse the scripts. The scripts are parsed on the server, under Apache. The server outputs the result of the parsing and the browser displays the result.I know that the browser does not parse the scripts. But what the hell is the problem? I have changed the apache log settings to debug and nothing to see in the log files. The amusing of this is theThe problem is very irregularly. Sometimes the effect steps on new scripts, sometimes on old scripts that worked before. Greetings Mario