function ZipFileRead($zip_file,$dtype) { $datas=array(); $line=0; //ライブラリ set_include_path(get_include_path() .PATH_SEPARATOR. DIR_ARCH_LIB); require_once "File/Archive.php"; //圧縮ファイル読み込み $arr=array(); $source = File_Archive::read( "$zip_file/" ); while( true ){ $w=CommonComponent::ZipFileReadBuffer($source); if ( $w == "" ){ break; } if ( $dtype == "csv" ){ $w=mb_convert_encoding(rtrim($w),"UTF-8","SJIS-WIN"); }else{ $w=rtrim($w); } $datas[]=array("data"=>$w); $line++; if ( $line >= RESULT_LINE_MAX ){ break; } } $source->close(); return $datas; }