Yes -
Ultimately, you want gethostname()
And if you do :
echo md5($_SERVER['SERVER_ADDR'].gethostname());
Then you will have a unique string that pertains only to that server
But, there are plenty of other values that will be unique-ish
Try :
<?php
print_r($_SERVER);
?>
And you should find several values that are like what you are looking for.
Such as:
[SERVER_SOFTWARE] => nginx/1.4.6
[SERVER_ADDR] => 123.456.789.909
Then, there are also some predefined constants that may hold what you want -
<?php
print_r(get_defined_constants());
?>
Which has things like:
[PHP_VERSION] => 5.5.9-1ubuntu4.5
[PHP_MAJOR_VERSION] => 5
[PHP_MINOR_VERSION] => 5
[PHP_RELEASE_VERSION] => 9
[PHP_EXTRA_VERSION] => -1ubuntu4.5
[PHP_VERSION_ID] => 50509
And while these values will be identical on servers that are running the same software stack -- it is often not likely that these values will match perfectly...
However, your best bet for unique ID would be the IP address + the host name-