use Shuchkin\SimpleXLSX;
ini_set('error_reporting', E_ALL);
ini_set('display_errors', true);
require_once __DIR__.'src/SimpleXLSX.php';
/* KLASOR İÇERİSİNİ OKU */
$_DIR = opendir("klasor_adi");
while (($_DIRFILE = readdir($_DIR)) !== false){
if(! is_dir($_DIRFILE)){
echo '<input type="radio" name="dosyalar[]" value="'.$_DIRFILE.'">
<label>'.$_DIRFILE.'</label><br>';
}
}
closedir($_DIR);
/* KLASOR İÇERİSİNİ OKU */
/* Excel Oku*/
if (isset($_POST)) {
if ( $xlsx = SimpleXLSX::parse($_POST["dosyalar"]) ) {
print_r( $xlsx->rows() );
} else {
echo SimpleXLSX::parse_error();
}
}
/* Excel Oku */Gerekli Dosyalar:
https://github.com/shuchkin/simplexlsx