PHP Script to convert CSV files into sortable HTML tables