downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoId::getInc> <MongoId::__construct
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoId::getHostname

(PECL mongo >= 1.0.8)

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

Description

public static string MongoId::getHostname ( void )

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.



add a note add a note User Contributed Notes MongoId::getHostname
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites