RE: fgetcsv() excel data missing

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

 



[snip]
Thanks for the reply.

 It shows  ÐÏࡱá\\\\\\\\\\\\\\\\>\\þÿ etc.

 source code I used is

  $handle = fopen ("file.xls","r"); 
  while ($data = fgetcsv ($handle, 1000, ",")) 
  { 
   $num = count($data); 
   for ($c=0; $c < $num ; $c++) 
   { 
	$str_email = $data[$c];
         echo $str_email;

   }
  }

[/snip]

You have to save the .xls file as a .csv file, then you can open and getcsv

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux