I have an array dump that I want to compress into a string that can be sent over the url to another part and decoded.
Currently I am gzcompressing it and base64 encoding it. However it does not seem to be working. It is returning bool(false)
when I use it on the receiving end.
gzcompress(json_encode($images),9))
Example of encoded data
string(214) "{"1":null,"2":null,"3":null,"4":"..\/uploads\/2462df38db374653720daa42b7aefec4\/cv4slm3fr8_c.png","5":"..\/uploads\/2462df38db374653720daa42b7aefec4\/vzh72hwqvk_c.png","6":null,"7":null,"8":null,"9":null,"10":null}"
The null
values with be filled with similar data. And I need to pass this data via a url to another script.
Note: the url that gets opened is inside a modal box, hence why I cannot POST to it.