note 102240 deleted from function.gzdecode by danbrown

From: Date: Fri, 04 Feb 2011 15:47:42 +0000
Subject: note 102240 deleted from function.gzdecode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176682@lists.php.net to get a copy of this message
Note Submitter: rayro at gmx dot de ---- 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...

« previous php.notes (#176682) next »