Please wait while we load your page...

PasswordSentry

Latest Version [8.00202205221] Last Updated [May-22-2022]

Tools

PHP Manual [MongoId

Protect Your Website Today


PHP Manual || MongoId

(PECL mongo >= 1.0.8)

MongoId::getHostnameGets the hostname being used for this machine's ids

Description

public static MongoId::getHostname ( void ) : string

This returns the hostname MongoId is using to generate unique ids. This should be the same value gethostname() returns.

It is identical to the function:

<?php

public static function getHostname() {
    return 
gethostname();
}

?>

Parameters

This function has no parameters.

Return Values

Returns the hostname.



PHP Manual || MongoId