Problemm reading CSV file

Mar 3, 2009 at 10:35 AM
Here is my code:
ini_set('include_path', ini_get('include_path').';');
include 'PHPExcel.php';
include 'PHPExcel/Writer/Excel2007.php';
$fichero = "../automatedthings/descuadres/".$_GET['fichero'];
$objReader = new PHPExcel_Reader_CSV();
$objReader->loadIntoExisting($fichero, $objPHPExcel);
I downloaded the last version of PHPExcel (1.6.6) , and I reuploaded it today.

The error:
Fatal error: Class 'PHPExcel_Reader_CSV' not found in ........Plesk/modulos/excel/descuadre_web_cps_reader.php on line 8

i don't know why it dosn't work, but if I use $objPHPExcel = new PHPExcel();
 it works perfectly.

Thank you
Mar 3, 2009 at 11:46 AM
You should include PHPExcel/Writer/CSV.php or use IOFactory.php (see examples in the download)