note 72205 added to function.gzencode
| From: | fantasysportswire at yahoo dot com | Date: | Sun, 07 Jan 2007 21:31:43 +0000 |
| Subject: | note 72205 added to function.gzencode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121396@lists.php.net to get a copy of this message | ||
A simple gzdecode similiar to the last one on the page minus any problems. Works for me - and none
of the more "elegant" ideas presented below wanted to work for me on Windows.
<?
function xgzdecode($data) {
$temp = tempnam("...","FSW");
file_put_contents($temp,$data);
$data=implode(gzfile($temp));
unlink($temp);
return $data;
}
?>
... and yea - see the example below for a use of the gzencode... that is one ugly (old) example in
the documentation.
----
Server IP: 64.71.164.2
Probable Submitter: 24.234.128.6
----
Manual Page -- http://www.php.net/manual/en/function.gzencode.php
Edit -- https://master.php.net/note/edit/72205
Del: integrated -- https://master.php.net/note/delete/72205/integrated
Del: useless -- https://master.php.net/note/delete/72205/useless
Del: bad code -- https://master.php.net/note/delete/72205/bad+code
Del: spam -- https://master.php.net/note/delete/72205/spam
Del: non-english -- https://master.php.net/note/delete/72205/non-english
Del: in docs -- https://master.php.net/note/delete/72205/in+docs
Del: other reasons-- https://master.php.net/note/delete/72205
Reject -- https://master.php.net/note/reject/72205
Search -- https://master.php.net/manage/user-notes.php