Bug #1183: File write Access
| From: | Rene dot Matthaeus at comware dot de | Date: | Thu, 25 Feb 1999 09:40:10 +0000 |
| Subject: | Bug #1183: File write Access | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4271@lists.php.net to get a copy of this message | ||
From: Rene.Matthaeus@comware.de
Operating system: SuSE Linux 6.0 Kernel 2.0.36
PHP version: 3.0.6
PHP Bug Type: Parser error
Bug description: File write Access
When I create/open a File to write, only could be written in the File when there is one Byte in the
File.
Can you Help me ?
while ($row = mysql_fetch_row($result)) {
$fname="export.dat";
if ($fp = fopen($fname, "a+")) {
for ($i=0;$i<=13;$i++) {
$data[$i]=("$row[$i],");
fputs($fp,$data[$i]);
}
fclose($fp);
}
}
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net