RE: [php] file open

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>> -----Original Message-----
> From: Snijders, Mark [mailto:Mark.Snijders@atosorigin.com]
> Sent: Monday, March 24, 2003 1:30 PM
> To: php-db@lists.php.net
> Subject:  [php] file open

> i'm using the next code:
> 
> $fp=fopen("WBSMUTA.CSV","r");
> while (!(feof($fp))) {
>         $data_file=fgets($fp,4096);
>         echo "<br>$data_file<br>";



$data = file("WBSMUTA.CSV");
$cnt = count($data);

for ($i=2; $i< $cnt; $i++)
{
    echo "<br>".$data[$i]."<br>";
}



regards,
Christian


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux