">
">
Error: region file not found."); } $file = fopen($region_file, "r"); if (!feof($file)) { fgets($file); } while(! feof($file)) { $csv = fgetcsv($file); if ($csv) { array_push($sem_spaces, $csv); } } fclose($file); $dict = array(); foreach($sem_spaces as $line) { if (!file_exists("./name/sem_" . $line[0] . ".csv")) { exit("

Error: semantics file " . $line[0] . " not found.

"); } $file_sem = fopen("./name/sem_" . $line[0] . ".csv", "r"); while(!feof($file_sem)) { $sem = fgetcsv($file_sem); if ($sem) { for ($i = 0; $i < $line[1]; $i++) { array_push($dict, $sem); } } } } if (count($dict) == 0) { exit("

Error: no name parts found.

"); } $result = array(); for ($i = 0; $i < $count; $i++) { array_push($result, create_name($nb_syllabes, $dict)); } $out .= ""; $out .= ""; $out .= "" . "" . "" ; $out .= ""; foreach($result as $key => $element){ $out .= ""; foreach($element as $subkey => $subelement){ $out .= ""; } $out .= ""; } $out .= "
" . txt_name . "" . txt_gismu . "" . txt_translate . "
$subelement
"; echo $out; } ?>