cvs: php-master-web /scripts update-user-notes
| From: | jim winstead | Date: | Thu, 16 May 2002 20:35:41 +0000 |
| Subject: | cvs: php-master-web /scripts update-user-notes | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-10274@lists.php.net to get a copy of this message | ||
jimw Thu May 16 16:35:41 2002 EDT
Modified files:
/php-master-web/scripts update-user-notes
Log:
create single file with all notes
Index: php-master-web/scripts/update-user-notes
diff -u php-master-web/scripts/update-user-notes:1.6 php-master-web/scripts/update-user-notes:1.7
--- php-master-web/scripts/update-user-notes:1.6 Mon Nov 5 21:42:31 2001
+++ php-master-web/scripts/update-user-notes Thu May 16 16:35:41 2002
@@ -17,6 +17,8 @@
$count = 0;
+$bz = popen("bzip2 -9 -c > $root/all.bz2", "w");
+
while (!feof($fp)) {
$line = chop(fgets($fp,8096));
@@ -39,11 +41,14 @@
}
$note = gzuncompress(base64_decode($note));
fputs($nf,"$id|$sect|$rate|$ts|$user|".base64_encode($note)."\n");
+ fputs($bz,"$id|$sect|$rate|$ts|$user|".base64_encode($note)."\n");
fclose($nf);
touch($file, $mtime < $ts ? $ts : $mtime);
$count++;
}
+
+pclose($bz);
exit($count ? 0 : 1);