Skip to content

Latest commit

 

History

History
21 lines (10 loc) · 417 Bytes

File metadata and controls

21 lines (10 loc) · 417 Bytes

jsToPhpCompression

LZW Compression adapted from RosettaCode

This small script allows you to compress strings in javascript, send it to php, and decompress it in php. It works most of the time currently. Any thoughts or suggestions are appreciated.

JS:

LZW.compress(yourString); LZW.decompress(yourCompressedString);

PHP:

lzw_decompress(yourCompressedString); lzw_compress(yourString);