Mercurial > hg > extraction-interface
view interface/load_regex.php @ 2:da5309d54083
add missing books to sections as dummy entries for further modification.
(1) Alter "Auto_increment" to 5190896 for sections table in database.
(2) Finds missing books (using mysql OR _select_distinct() in add_missing_books_to_sections.php
(3) Put the missing_books.csv in intermediate_results.
and execute: add_missing_books_to_sections.php
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 23 Jan 2015 19:00:57 +0100 |
parents | b12c99b7c3f0 |
children | 63e08b98032f |
line wrap: on
line source
<?php $returnArray = array(); $files1 = scandir("regex_files"); foreach ( $files1 as $file ) { if ( $file != "." && $file != ".." ) { $returnArray[preg_replace("/\.txt/", "", $file)] = file_get_contents( "regex_files/".$file ); } } echo json_encode($returnArray); ?>