"", "STANDALONE_30" => "", "STANDALONE_SSL" => "", "STANDALONE_AUTH" => "", "STANDALONE_X509" => "", "STANDALONE_PLAIN" => "", "REPLICASET" => "", "REPLICASET_30" => "", "REPLICASET_DNS" => "", ); $servers = array_merge($servers, $config); def($servers); $consts = array( "DATABASE_NAME" => "phongo", "COLLECTION_NAME" => makeCollectionNameFromFilename($_SERVER["SCRIPT_FILENAME"]), ); def($consts); // These use values from constants defined above $consts = array( "NS" => DATABASE_NAME . "." . COLLECTION_NAME, ); def($consts);