Revision history for Mod008fCompression


Revision [23247]

Last edited on 2016-05-20 07:38:47 by JavaWoman [Replaces old-style internal links with new pipe-split links.]
Additions:
**[[http://www.wikini.net/wakka.php?wiki=PatrickPaul | PatrickPaul]]**
Deletions:
**[[http://www.wikini.net/wakka.php?wiki=PatrickPaul PatrickPaul]]**


Revision [19266]

Edited on 2008-01-28 00:14:45 by JavaWoman [Modified links pointing to docs server]

No Differences

Revision [17180]

Edited on 2007-07-07 08:17:21 by JavaWoman [fixed credit links]
Additions:
==== Wikka Mod 008 ====
Type: Feature Addition
----
===Credit:===
**[[http://www.wikini.net/wakka.php?wiki=PatrickPaul PatrickPaul]]**
http://www.wikini.net/
----

Implemented gzip encoding.

File modified: /wakka.php


%%(php)

// create wakka object
$wakka = new Wakka($wakkaConfig);

function compress_output($output)
{
return gzencode($output);
}

// Check if the browser supports gzip encoding, HTTP_ACCEPT_ENCODING
if (strstr ($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') )
{
// 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");
}

%%

----

Why not use simple
ob_start("ob_gzhandler");
instead?
Deletions:
==== Wikka Mod 008 ====
Type: Feature Addition
----
===Credit:===
**WikiNi (PatrickPaul)**
----

Implemented gzip encoding.

File modified: /wakka.php


%%(php)

// create wakka object
$wakka = new Wakka($wakkaConfig);

function compress_output($output)
{
return gzencode($output);
}

// Check if the browser supports gzip encoding, HTTP_ACCEPT_ENCODING
if (strstr ($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') )
{
// 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");
}

%%

----

Why not use simple
ob_start("ob_gzhandler");
instead?



Revision [3079]

Edited on 2004-12-10 15:51:46 by CharlesNepote [Add credits]
Additions:
==== Wikka Mod 008 ====
Type: Feature Addition
----
===Credit:===
**WikiNi (PatrickPaul)**
----

Implemented gzip encoding.

File modified: /wakka.php


%%(php)

// create wakka object
$wakka = new Wakka($wakkaConfig);

function compress_output($output)
{
return gzencode($output);
}

// Check if the browser supports gzip encoding, HTTP_ACCEPT_ENCODING
if (strstr ($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') )
{
// 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");
}

%%

----

Why not use simple
ob_start("ob_gzhandler");
instead?

Deletions:
==== Wikka Mod 008 ====
Type: Feature Addition
----
===Credit:===
** ""WikiNi ?"" **
----

Implemented gzip encoding.

File modified: /wakka.php


%%(php)

// create wakka object
$wakka = new Wakka($wakkaConfig);

function compress_output($output)
{
return gzencode($output);
}

// Check if the browser supports gzip encoding, HTTP_ACCEPT_ENCODING
if (strstr ($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') )
{
// 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");
}

%%

----

Why not use simple
ob_start("ob_gzhandler");
instead?


Revision [237]

Edited on 2004-05-03 20:31:20 by RomanIvanov [Add credits]
Additions:
Why not use simple
ob_start("ob_gzhandler");
instead?
-- RomanIvanov,


Revision [56]

The oldest known version of this page was created on 2004-03-09 02:40:14 by JsnX [Add credits]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki