mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-26 18:02:10 +01:00
We no create a /tmp/PHONGO-SERVERS.json file upon launching the servers which stores the server IDs and connection string (including auth). This makes it much faster to look up the available servers
11 lines
224 B
PHP
11 lines
224 B
PHP
<?php
|
|
$FILENAME = sys_get_temp_dir() . "/PHONGO-SERVERS.json";
|
|
|
|
$json = file_get_contents($FILENAME);
|
|
$servers = json_decode($json);
|
|
foreach($servers as $serverid => $uri) {
|
|
printf("%-20s \t %s\n", $serverid, $uri);
|
|
}
|
|
|
|
|