Re: PHP 5.2.1: Some scripts are being parsed, but most aren't

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Zoltán Németh wrote:
2007. 03. 28, szerda keltezéssel 14.42-kor Mario Guenterberg ezt írta:
On Wed, Mar 28, 2007 at 07:20:37AM -0500, Myron Turner wrote:
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 the
old 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???

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émeth

The problem is very irregularly. Sometimes the effect steps on new
scripts, sometimes on old scripts that worked before.
Greetings
Mario



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux