diff --git a/Tools/PHP/FindPlayerUIDByName.php b/Tools/PHP/FindPlayerUIDByName.php new file mode 100644 index 00000000..4236b480 --- /dev/null +++ b/Tools/PHP/FindPlayerUIDByName.php @@ -0,0 +1,25 @@ +pconnect(122.99.21.122, 6379, 2.5, "Server1"); +$redis->auth("yourlongasspasswordhere"); + +$playerNames = $redis->keys('PlayerData:*'); + +// print all UID's matching player name +foreach ($playerNames as $key => $value) { + $data = $redis->get($value); + if (stripos($data, $search) !== false) { + $key = explode(":", $value); + echo "

" . $key[1] . "

" ; + } +} + +?>