Mercurial > hg > extraction-interface
view interface/load_regex.php @ 15:1f98c92ebbfb
first version of UI layout. Very roughly, but works in the fixed sidebar, head line, popups and so on.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 19 Feb 2015 18:11:11 +0100 |
parents | 63e08b98032f |
children |
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); ?>