[PHP-DEV] Bug #1183: File write Access From: Rene.Matthaeus <email protected>
Date: 02/25/99

From: Rene.Matthaeus <email protected>
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 <email protected>
For help: php-dev-help <email protected>