connect(DB_NAME, DB_HOST, DB_USER, DB_PASS); $sql->setDebug($debug); // we get the localisation $localisation = new localisation(true,true); $res_loc=$localisation->simple_loc(); // we get the correct robotx.txt $lines = file ($path."robots_".$res_loc['domain_ct'].".txt"); foreach ($lines as $line_num => $line) { echo $line; } ?>