comparison interface/load_regex.php @ 6:63e08b98032f

rewrite extraction interface into PHP MVC architecture. (Although js hasn't been rewritten into MVC, it's fitted into the current PHP MVC architecture.) - The root of the new PHP MVC is at 'develop/'. - extraction interface is called "Extractapp" with several action, eg TaggingText, EditWordlist, EditTaglist, ExportTable.
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Thu, 05 Feb 2015 16:07:53 +0100
parents b12c99b7c3f0
children
comparison
equal deleted inserted replaced
5:cbbb7ef22394 6:63e08b98032f
2 2
3 $returnArray = array(); 3 $returnArray = array();
4 $files1 = scandir("regex_files"); 4 $files1 = scandir("regex_files");
5 foreach ( $files1 as $file ) { 5 foreach ( $files1 as $file ) {
6 if ( $file != "." && $file != ".." ) { 6 if ( $file != "." && $file != ".." ) {
7
7 $returnArray[preg_replace("/\.txt/", "", $file)] = file_get_contents( "regex_files/".$file ); 8 $returnArray[preg_replace("/\.txt/", "", $file)] = file_get_contents( "regex_files/".$file );
8 } 9 }
9 } 10 }
10 11
11 echo json_encode($returnArray); 12 echo json_encode($returnArray);