Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't
Mario Guenterberg wrote: On Tue, Mar 27, 2007 at 10:22:40PM -0700, Eddie wrote: Hi all, Previously, I had installed Apache 1.3.37 with PHP 5.2.1 as a static module on Ubuntu 6.06. I am having a problem where, for some reason, some of my PHP scripts just show source code, while some are parsed. Hi... I have a problem something similar. Any scripts would be parsed, any would be downloaded in fireofx 2.x. I use Ubuntu 6.10. My solution is to start the ancient Mozilla browser, with this browser works everything fine. I think it is a firefox problem?! My server is apache 2.0.55 with php 5.2.1. Greetings Mario 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. -- _ 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
Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't
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 problem is very irregularly. Sometimes the effect steps on new scripts, sometimes on old scripts that worked before. Greetings Mario -- - | havelsoft.com - Ihr Service Partner für Open Source | | Tel: 033876-21 966 | | Notruf: 0173-277 33 60 | | http://www.havelsoft.com| | | | Inhaber: Mario Günterberg | | Mützlitzer Strasse 19 | | 14715 Märkisch Luch | - signature.asc Description: Digital signature
Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't
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
Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't
I've seen an issue similar to this a few times recently. It involved a phpBB board I log onto periodically. It seems that the server is really slow and after what seems to be a timeout period, sometimes I'll get a download request in Firefox. If I let it download, I get an empty file. I was worried that it was flaking and was actually sending PHP source code, but it didn't. This seems to only happen if the server times out. Like maybe the server is sending the PHP script to the PHP engine and not getting a response back as fast as it would like so it's assuming the engine failed. I've seen it happen once on another server, but this other server (again with phpBB) seems to be a bit quicker so only saw the issue once. But it appeared to be similar circumstances.. some kind of timeout interpretting the PHP script. Not sure if it's a web server issue. If maybe there's a setting in Apache to say wait another 5 seconds for script interpretting to be done and it wouldn't happen anymore. Don't know and don't have time to research. Just wanted to share a similar experience in case it gives any clues as to why yours is doing what it's doing. -TG = = = Original message = = = 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 ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't
Hi all, Previously, I had installed Apache 1.3.37 with PHP 5.2.1 as a static module on Ubuntu 6.06. I am having a problem where, for some reason, some of my PHP scripts just show source code, while some are parsed. In the meantime, while trying to get this issue fixed, I decided to upgrade to Ubuntu 6.10, the latest Ubuntu release, to see if that helped the problem. As stated above, some of my PHP scripts just show source code both in Apache and the CLI, and some are actually parsed. I know this is not an Apache problem since I get the same results in the CLI. This is a paid script, and I am unable to post code, but in generic terms, I have narrowed it down to the following code. require_once($(DIR VARIABLE NAME HERE)./(NAME HERE).php); include_once(includefilenamehere.inc); The first line of the code completely makes it show the line of code, and the second line makes it show the include file, even if the second line is executed without the first line. Unfortunately, this is the only information I've been able to locate in my debugging. For debugging purposes, I also downgraded to PHP 4.4.6, and I had the same exact problem. It looks like it is a problem with a library possibly? An strace reports that PHP is trying to search for libraries in /usr/local/mysql/lib/mysql, but if I put them in there, it still doesn't function correctly. Any help is more than appreciated. Thank you very much, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't
Check your php files. Make sure the PHP code are enclosed in the tag ?php ... ?, not ? ... ? There's a php.ini option to accept ? ... ?. It's: short_open_tag = On 2007/3/28, Eddie [EMAIL PROTECTED]: Hi all, Previously, I had installed Apache 1.3.37 with PHP 5.2.1 as a static module on Ubuntu 6.06. I am having a problem where, for some reason, some of my PHP scripts just show source code, while some are parsed. In the meantime, while trying to get this issue fixed, I decided to upgrade to Ubuntu 6.10, the latest Ubuntu release, to see if that helped the problem. As stated above, some of my PHP scripts just show source code both in Apache and the CLI, and some are actually parsed. I know this is not an Apache problem since I get the same results in the CLI. This is a paid script, and I am unable to post code, but in generic terms, I have narrowed it down to the following code. require_once($(DIR VARIABLE NAME HERE)./(NAME HERE).php); include_once(includefilenamehere.inc); The first line of the code completely makes it show the line of code, and the second line makes it show the include file, even if the second line is executed without the first line. Unfortunately, this is the only information I've been able to locate in my debugging. For debugging purposes, I also downgraded to PHP 4.4.6, and I had the same exact problem. It looks like it is a problem with a library possibly? An strace reports that PHP is trying to search for libraries in /usr/local/mysql/lib/mysql, but if I put them in there, it still doesn't function correctly. Any help is more than appreciated. Thank you very much, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- -- Hap-Hang Yu, Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't
On Tue, Mar 27, 2007 at 10:22:40PM -0700, Eddie wrote: Hi all, Previously, I had installed Apache 1.3.37 with PHP 5.2.1 as a static module on Ubuntu 6.06. I am having a problem where, for some reason, some of my PHP scripts just show source code, while some are parsed. Hi... I have a problem something similar. Any scripts would be parsed, any would be downloaded in fireofx 2.x. I use Ubuntu 6.10. My solution is to start the ancient Mozilla browser, with this browser works everything fine. I think it is a firefox problem?! My server is apache 2.0.55 with php 5.2.1. Greetings Mario -- - | havelsoft.com - Ihr Service Partner für Open Source | | Tel: 033876-21 966 | | Notruf: 0173-277 33 60 | | http://www.havelsoft.com| | | | Inhaber: Mario Günterberg | | Mützlitzer Strasse 19 | | 14715 Märkisch Luch | - signature.asc Description: Digital signature