note 102240 added to function.gzdecode

From: Date: Thu, 03 Feb 2011 16:56:10 +0000
Subject: note 102240 added to function.gzdecode
Groups: php.notes 
Request: Send a blank email to php-notes+get-176649@lists.php.net to get a copy of this message
Since gzdecode does not exist, heres the simplest solution to decode the data using the data uri scheme: <?php $data = readgzfile('data://text/plain;base64,'.base64_encode($data)); ?> It's much like the solution of webmaster at askapache dot com, but it does not create a temporary file for using with readgzfile... The ugly with this is, that we have to transform the data again with base64 encoding... ---- Server IP: 212.124.37.9 Probable Submitter: 85.8.70.161 ---- Manual Page -- http://www.php.net/manual/en/function.gzdecode.php Edit -- https://master.php.net/note/edit/102240 Del: integrated -- https://master.php.net/note/delete/102240/integrated Del: useless -- https://master.php.net/note/delete/102240/useless Del: bad code -- https://master.php.net/note/delete/102240/bad+code Del: spam -- https://master.php.net/note/delete/102240/spam Del: non-english -- https://master.php.net/note/delete/102240/non-english Del: in docs -- https://master.php.net/note/delete/102240/in+docs Del: other reasons-- https://master.php.net/note/delete/102240 Reject -- https://master.php.net/note/reject/102240 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176649) next »