I have a client that runs a Python script and sends compressed string to a server that runs a PHP script.
The Python script uses
Code: Select all
compressed_message = zlib.compress(string)I tried the following in the PHP script to decompress the message:
Code: Select all
$msg = $_POST['compressed'];
$decompressed = gzuncompress($msg);
What am I doing wrong here?
Thanks in advance.