note 36651 added to function.fopen
| From: | boryn at rn2 dot php dot net | Date: | Fri, 17 Oct 2003 11:16:33 +0000 |
| Subject: | note 36651 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-58752@lists.php.net to get a copy of this message | ||
I can use the following code:
<?php
$logfile = fopen('compress.bzip2://test.bz2', "w");
fwrite($logfile, "test line\n");
fclose($logfile);
?>
but cannot:
<?php
$logfile = fopen('compress.bzip2://test.bz2', "a");
fwrite($logfile, "test line\n");
fclose($logfile);
?>
Difference is in the second parameter of bzopen();
Does anyone know the solution for this problem? Or is it a bug?
I get an error:
Fatal error: Maximum execution time of 30 seconds exceeded in test.php on line 3
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36651
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36651&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36651&report=yes
Search -- http://master.php.net/manage/user-notes.php