[#] hm X_Shell Backd00r [#]

Current Path : /var/www/clients/client35/web46/web/buen-fin/app/model/
Upload File :
Current File : /var/www/clients/client35/web46/web/buen-fin/app/model/Excel.class.php

<?php
	
	require_once '../../librarys/PHPExcel.php';

	class Excel{
		
		public $dataRead = array();

		function __construct(){
			$objPHPExcel = new PHPExcel();
		}

		public function leerExcel($file){
			$objPHPExcel = PHPExcel_IOFactory::load($file);
			$objHoja = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);

			$x = 0;
			for ($i=1; $i <= count($objHoja); $i++) { 
				$this->dataRead[$x]['email'] 	= $objHoja[$i]['A'];
				$x++;
			}

			
		}

	}

	/*$e = new Excel();
	$e->leerExcel();

	var_dump($e->dataRead);*/

?>

Mr.hm X_Shell Backd00r 1.0, Coded By Mr.hm X_Shell Backd00r