note 54255 added to function.gzfile

From: Date: Tue, 28 Jun 2005 13:44:44 +0000
Subject: note 54255 added to function.gzfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-91094@lists.php.net to get a copy of this message
A quicker way to load a gziped file in a string : <?php function gzfile_get_contents($filename, $use_include_path = 0) { //File does not exist if( !@file_exists($filename) ) { return false; } //Read and imploding the array to produce a one line string $data = gzfile($filename, $use_include_path); $data = implode($data); return $data; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.gzfile.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54255 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54255&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54255&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54255&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54255&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54255&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54255&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54255&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#91094) next »