Originally Posted by Nomarky
Could I use the server port as ID? Or would 27025 be seen as a substring of 27015?
I'm just looking for a good way to id the servers, where admins can easily find the id for each server, and I already have server control pages that resolve the ip:port to hostnames tagged on to the login system from this plugin. Port seemed a simple option...
that would be fine, it's actually the main server ID scheme I'm using.
neither are substring matches of the other.
Substring match means, if you have string1 (let's say "27025") and string2 ("27015") - if we looked at string2 to see if it was contained inside string1.
Since "27025" does not exist inside "27015", it would not be a substring match.
On the other hand, if string2 was "2701527025", well, that WOULD yield a substring match, because string1 is 27025 in our example. Even though string2 isn't "equal" to 27025, we can find FIND 27025 as a substring of its value. So "27025" and "2701527025" would be a bad pair of server ID's to use.