Hi, I know that I should be using Zope for everything, but we have a lot of scripts that were written in PHP and we don't have time to port them just yet. We are using PHParser to allow us to reuse the old scripts. However my scripts now come with X-Powered-By: PHP/4.1.2 Content-type: text/html printed at the top of the screen. Has anyone been able to fix this? I tried making some edits to php.ini. Im asking here, because I don't have this problem on my regular php/apache servers. Thanks. Kevin Sullivan, MCP, A+ Systems Administrator MIT Economics Dept ksull@economics.mit.edu 617-253-8895
hi, I guess you use: http://www.zope.org/Members/mjablonski/PHParser - which zope-version do you run? - do you run Zope under windows or linux? it's important to have no newlines in front of your <?php ...?> -definition if your document is called through the web!!! an additional newline will break the parsing of the response-header so that the header is printed on the screen. cheers, maik Kevin Sullivan wrote:
Hi,
I know that I should be using Zope for everything, but we have a lot of scripts that were written in PHP and we don't have time to port them just yet. We are using PHParser to allow us to reuse the old scripts. However my scripts now come with X-Powered-By: PHP/4.1.2 Content-type: text/html printed at the top of the screen. Has anyone been able to fix this? I tried making some edits to php.ini. Im asking here, because I don't have this problem on my regular php/apache servers. Thanks.
Kevin Sullivan, MCP, A+ Systems Administrator MIT Economics Dept ksull@economics.mit.edu 617-253-8895
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
hi, just another one: maybe you should edit PHParser.py. Uncomment the second PHPEOL at the beginning of the file. -mj Maik Jablonski wrote:
hi,
I guess you use: http://www.zope.org/Members/mjablonski/PHParser
- which zope-version do you run? - do you run Zope under windows or linux?
it's important to have no newlines in front of your <?php ...?> -definition if your document is called through the web!!! an additional newline will break the parsing of the response-header so that the header is printed on the screen.
cheers, maik
Kevin Sullivan wrote:
Hi,
I know that I should be using Zope for everything, but we have a lot of scripts that were written in PHP and we don't have time to port them just yet. We are using PHParser to allow us to reuse the old scripts. However my scripts now come with X-Powered-By: PHP/4.1.2 Content-type: text/html printed at the top of the screen. Has anyone been able to fix this? I tried making some edits to php.ini. Im asking here, because I don't have this problem on my regular php/apache servers. Thanks.
Kevin Sullivan, MCP, A+ Systems Administrator MIT Economics Dept ksull@economics.mit.edu 617-253-8895
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
Kevin Sullivan writes:
I know that I should be using Zope for everything, but we have a lot of scripts that were written in PHP and we don't have time to port them just yet. We are using PHParser to allow us to reuse the old scripts. However my scripts now come with X-Powered-By: PHP/4.1.2 Content-type: text/html printed at the top of the screen. Has anyone been able to fix this? Something added an empty line in the HTTP response headers.
Someone else has recently reported a similar problem (apparently unrelated to PHP). He got a reply indicating an Apache bug. But you do not mention Apache... Dieter
This might be a php bug, I remeber helping someone out on #zope. I think you have to edit the product to execute php commands with -q flag: E:\PHP>php -h Usage: php [-q] [-h] [-s [-v] [-i] [-f <file>] | {<file> [args...]} -q Quiet-mode. Suppress HTTP Header output. Darn now everyone knows I have PHP on my box... -- Andy McKay Agmweb Consulting http://www.agmweb.ca ----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> To: "Kevin Sullivan" <ksull@economics.mit.edu> Cc: <zope@zope.org> Sent: Wednesday, August 14, 2002 11:41 AM Subject: Re: [Zope] PHParser
Kevin Sullivan writes:
I know that I should be using Zope for everything, but we have a lot of scripts that were written in PHP and we don't have time to port them just yet. We are using PHParser to allow us to reuse the old scripts. However my scripts now come with X-Powered-By: PHP/4.1.2 Content-type: text/html printed at the top of the screen. Has anyone been able to fix this? Something added an empty line in the HTTP response headers.
Someone else has recently reported a similar problem (apparently unrelated to PHP). He got a reply indicating an Apache bug. But you do not mention Apache...
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
hi, using "php -q" is not needed at all by PHParser, because it "decodes" the returned php-headers and puts them in the ZOPE-RESPONSE-object... this is useful if you whish to create png's and such stuff with PHParser. cheers, maik Andy McKay wrote:
This might be a php bug, I remeber helping someone out on #zope. I think you have to edit the product to execute php commands with -q flag:
E:\PHP>php -h Usage: php [-q] [-h] [-s [-v] [-i] [-f <file>] | {<file> [args...]} -q Quiet-mode. Suppress HTTP Header output.
Darn now everyone knows I have PHP on my box... -- Andy McKay Agmweb Consulting http://www.agmweb.ca
----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> To: "Kevin Sullivan" <ksull@economics.mit.edu> Cc: <zope@zope.org> Sent: Wednesday, August 14, 2002 11:41 AM Subject: Re: [Zope] PHParser
Kevin Sullivan writes:
I know that I should be using Zope for everything, but we have a lot of scripts that were written in PHP and we don't have time to port them just yet. We are using PHParser to allow us to reuse the old scripts. However my scripts now come with X-Powered-By: PHP/4.1.2 Content-type: text/html printed at the top of the screen. Has anyone been able to fix this? Something added an empty line in the HTTP response headers.
Someone else has recently reported a similar problem (apparently unrelated to PHP). He got a reply indicating an Apache bug. But you do not mention Apache...
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
Andy McKay wrote:
This might be a php bug, I remeber helping someone out on #zope. I think you have to edit the product to execute php commands with -q flag:
E:\PHP>php -h Usage: php [-q] [-h] [-s [-v] [-i] [-f <file>] | {<file> [args...]} -q Quiet-mode. Suppress HTTP Header output.
Darn now everyone knows I have PHP on my box...
And you're running Windows, you sinner, you ;-) Chris
participants (5)
-
Andy McKay -
Chris Withers -
Dieter Maurer -
Kevin Sullivan -
Maik Jablonski