08c11-3.php

来自「介绍PHP5的给类型函数应用」· PHP 代码 · 共 14 行

PHP
14
字号
<?php// Let's capture all data that was passed to this script, and// serialize it into a text string:$ized = serialize($_REQUEST);// Now prepare this to be written to a gzipped file - Highest Compression:$compressed = gzencode($ized, 9);// Generate a guaranteed unique file using tempnam, with a GZ- prefix$filename = tempnam('.', 'GZ-');// Now write the compressed file!file_put_contents($filename, $compressed);?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?