Mercurial > hg > LGMap
comparison get_coordinates_for_listed_books.php @ 1:de2c442b6cbb
config to development server
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 24 Mar 2015 15:13:59 +0100 |
parents | 57bde4830927 |
children | b85894a9b2dc |
comparison
equal
deleted
inserted
replaced
0:57bde4830927 | 1:de2c442b6cbb |
---|---|
1 <?php | 1 <?php |
2 include_once('../interface/Lib_mb_utf8.php'); | 2 include_once('config/Lib_mb_utf8.php'); |
3 include_once('../interface/config.php'); | 3 include_once('config/config.php'); |
4 | 4 |
5 set_time_limit(0); | 5 set_time_limit(0); |
6 ini_set('memory_limit', '-1'); | 6 ini_set('memory_limit', '-1'); |
7 | 7 |
8 $link_mysql = mysql_connect($mysql_server, $mysql_user, $mysql_password); | 8 $link_mysql = mysql_connect($mysql_server, $mysql_user, $mysql_password); |
16 if (!$db_selected) { | 16 if (!$db_selected) { |
17 die ('Can\'t use foo : ' . mysql_error()); | 17 die ('Can\'t use foo : ' . mysql_error()); |
18 } | 18 } |
19 | 19 |
20 function readCsvFile($fileName){ | 20 function readCsvFile($fileName){ |
21 $fp=fopen("../search/csv_files/".$fileName,"r"); | 21 global $server_host; |
22 //$fp=fopen("../LGSearch/csv_files/".$fileName,"r"); | |
23 $fp=fopen($server_host."LGSearch/csv_files/".$fileName,"r"); | |
22 $data=fgetcsv($fp); | 24 $data=fgetcsv($fp); |
23 $columnNameMappingArray=['BOOK_ID','LEVEL1','LEVEL2', | 25 $columnNameMappingArray=['BOOK_ID','LEVEL1','LEVEL2', |
24 'Name','PERIOD','TimeSpan:begin','TimeSpan:end','PAGE','SECTION','CONTENT', | 26 'Name','PERIOD','TimeSpan:begin','TimeSpan:end','PAGE','SECTION','CONTENT', |
25 'Description']; //columns from input array/file | 27 'Description']; //columns from input array/file |
26 $columnNameArray=['Address','ADMIN_TYPE','LEVEL1','LEVEL2', | 28 $columnNameArray=['Address','ADMIN_TYPE','LEVEL1','LEVEL2', |