Press "Enter" to skip to content

php存储blob压缩内容

https://blog.csdn.net/zhao1234567890123456/article/details/39371243

//存入数据库

  1.     $CONTENT=“测试内容”;   //$CONTENT为新闻内容
  2.     $COMPRESS_CONTENT = bin2hex(gzcompress($CONTENT));

取出数据@gzuncompress(hex2bin(data));

 

发表评论