hello,

but what if I don't have access to server config or want just to compress
rpcphp output and not all server output.

I can use something like this:

if(isset($_SERVER['HTTP_ACCEPT_ENCODING']) &&
strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) 
{
                $res = gzencode($output, 9);
                header('Content-Encoding: gzip');
}

echo $res;

I was wondering if there's already a param to activate in rpcphp or should I
set compression by my self.

Regards


Robert Nimax wrote
> 
> Hi,
> this should be part of your server configuration, Apache Web Server for
> example, and not part of the application. 
> Maybe you need something like this:
> http://httpd.apache.org/docs/2.0/mod/mod_deflate.html
> 
> HTH,
> Rob.
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: slah [mailto:slachtar@] 
> Gesendet: Mittwoch, 21. März 2012 11:29
> An: Robert Nimax; qooxdoo-devel@.sourceforge
> Betreff: [qooxdoo-devel] enable gzip compression in rpcphp
> 
> Hello,
> is it possible to enable compression of the results in the rpcphp backend?
> 
> Regards
> 
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/enable-gzip-compression-in-rpcphp-tp7391839p7391839.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@.sourceforge
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here 
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@.sourceforge
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/enable-gzip-compression-in-rpcphp-tp7391839p7391970.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to