php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #15152 SSI output from PHP CGI produces garbage on Netscape browsers
Submitted: 2002-01-21 15:18 UTC Modified: 2002-07-02 14:02 UTC
From: bobsledbob at yahoo dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.1.1 OS: Linux 2.4.2-2 RedHat 7.1
Private report: No CVE-ID: None
 [2002-01-21 15:18 UTC] bobsledbob at yahoo dot com
I'm calling a PHP CGI script through Apache's mod_include SSI directives.  When using Internet Explorer, the output of the PHP script is just fine.  However, when using Netscape (4.x and 6.x), I just see garbage as output (similar to what you would see if you were viewing a website in a language that your browser didn't support).

I was thinking this was an Apache related problem, but then I decided to try to include a bash shell script cgi using SSI.  This worked just fine for both browsers which leads me to believe that it's a PHP specific problem.  Here's the scripts that I'm using:

-- ssi.shtml --

<!--#include virtual="bash-ssi.cgi" -->
<br>
<!--#include virtual="php-ssi.cgi" -->


-- bash-ssi.cgi --

#!/bin/bash
echo "X-Powered-By: PHP/4.1.1"
echo "Content-type: text/html"
echo
echo "This is a test string from a Bash Shell CGI script"


-- php-ssi.cgi --

#!/usr/local/bin/php
<?php
  echo "This is a test string from a PHP CGI script.\n";
?>


Here is the output from the browsers:

-- Internet Explorer --

This is a test string from a Bash Shell CGI script 
This is a test string from a PHP CGI script. 


-- Netscape --

This is a test string from a Bash Shell CGI script 
??-


I'm sorry I can't test this on any other systems.  This is the only one I have access to right now.  Thanks for the help.

Adam Taft
bobsledbob@yahoo.com


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-21 16:14 UTC] bobsledbob at yahoo dot com
I just had a revelation regarding this issue.  I realized that the problem might be coming from the fact that I have 'output_handler = ob_gzhandler' in my php.ini file.

I disabled this compressed output handler and it seems to have solved the problem!

I'm leaving this bug's status in your hands because this might be useful information to somebody else out there using the ob_gzhandler output handler (maybe for the documenation).  This is probably a Netscape compression handling issue?

Thanks.

Adam Taft
bobsledbob@yahoo.com

 [2002-01-22 14:20 UTC] sander@php.net
Reclassified as a documentation problem.
 [2002-07-02 14:02 UTC] eru@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 23:01:30 2024 UTC