Re: [PHP] problem with ob_start() and header() in osCommerce cart
by Youri LACAN-BARTLEY other posts by this author
Dec 13 2006 9:53PM messages near this date
Re: [PHP] problem with ob_start() and header() in osCommerce cart
|
Re: [PHP] problem with ob_start() and header() in osCommerce cart
afan@[...].net wrote:
> > afan@[...].net wrote:
> >> Hi,
> >> even it's problem with osCommerce cart I think it's still php question:
> >>
> >> there is a code in application_top.php file (this file is includeed in
> >> login.php page, all the way on the top of the login.php file wich means
> >> is
> >> "the first one")
> >>
> >> // Check if the browser supports gzip encoding, HTTP_ACCEPT_ENCODING
> >> if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip'))
> >> {
> >> // Start output buffering, and register compress_output() (see
> >> // below)
> >> ob_start("compress_output");
> >>
> >> // Tell the browser the content is compressed with gzip
> >> header("Content-Encoding: gzip");
> >> }
> >>
> >> and I'm getting login.php as blank page.
> >> But, when I hide ob_start() and header() lines I will get login page but
> >> with Warning says "The Encryption key file is missing."?!?!?
> >>
> >> Any idea?
> > I think asking in a/the OSCommerce forum will get you quicker result
> > (don't forget to tell them what OS,php version, OSC version, etc you are
> > running)
> >
> > bloomin' weird error about the 'Encryption key' though... assuming it's a
> > php error... chances are it's specific to OSC.
> >
> > ps - don't know anything about OSC myself, sorry
> >
> I alerady posted on osCommerce forum but soemtimes I have to wait for 2
> days to get an answer :)
> Could it be something in php.ini has to be changed? Or Apache?
> I use php 5.2 and Apache 2.2
Hi there,
you might want to take a look at your php.ini and make sure you have
gzip support enabled.
Or maybe check something along the lines of "zlib.output_compression =
On" or maybe "zlib.output_handler". There might be something dodgy in
those areas although I really can't be sure since I'm not at all
familier with osCommerce;
Good luck !
>
> Thanks
>
> -afan
>
>
> >> -afan
> >>
> >
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
afan
Jochem Maas
afan
Youri LACAN-BARTLEY
afan
|