PHP: Send compressed data to be used on Javascript (i.e. Json data)

PHOTO EMBED

Mon Aug 29 2022 19:36:14 GMT+0000 (UTC)

Saved by @marcopinero #php

<?php

$someBigString = gzencode('blahblah...blah');

header("Content-type: text/javascript");
header('Content-Encoding: gzip'); 

echo $someBigString;

?>
content_copyCOPY