note 88682 added to function.gzwrite
| From: | repository at lamaresh dot net | Date: | Tue, 03 Feb 2009 18:37:19 +0000 |
| Subject: | note 88682 added to function.gzwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150154@lists.php.net to get a copy of this message | ||
This function add a line to a .gz compressed file
function AppendLineGz($file,$string) {
if (file_exists($file)) {
$lines = gzfile($file);
$lines[count($lines)] = "$string\r\n";
$input=implode($lines);
} else {$input="$string\r\n";}
$gz = gzopen($file,'w9');
gzwrite($gz, $input);
gzclose($gz);
}
----
Server IP: 69.147.83.197
Probable Submitter: 87.18.24.236
----
Manual Page -- http://www.php.net/manual/en/function.gzwrite.php
Edit -- https://master.php.net/note/edit/88682
Del: integrated -- https://master.php.net/note/delete/88682/integrated
Del: useless -- https://master.php.net/note/delete/88682/useless
Del: bad code -- https://master.php.net/note/delete/88682/bad+code
Del: spam -- https://master.php.net/note/delete/88682/spam
Del: non-english -- https://master.php.net/note/delete/88682/non-english
Del: in docs -- https://master.php.net/note/delete/88682/in+docs
Del: other reasons-- https://master.php.net/note/delete/88682
Reject -- https://master.php.net/note/reject/88682
Search -- https://master.php.net/manage/user-notes.php