Created
September 7, 2012 23:50
-
-
Save chrismeller/3670815 to your computer and use it in GitHub Desktop.
Test PHP ZLib Methods for Compressing HTTP Requests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header('Content-Encoding: deflate' ); | |
| echo gzdeflate( 'this is just a test!' ); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header('Content-Encoding: gzip' ); | |
| echo gzencode( 'this is just a test!' ); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header('Content-Encoding: deflate' ); | |
| echo gzcompress( 'this is just a test!' ); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment