2014-09-13 73 views

回答

2
<?php 
echo gethostname(); // may output e.g,: sandie 

// Or, an option that also works before PHP 5.3 
echo php_uname('n'); // may output e.g,: sandie 
?> 

http://php.net/manual/de/function.gethostname.php

+0

,讓我srvXX.000webhost.com但下文稱要php.net/manual/en/function.gethostbyaddr.php該網頁,我用http://sandbox.onlinephpfunctions.com/代碼/ ae971fc9adfbb11c08ad757fa9b33d59056cf5c3,並感謝該網站頁面。 – ArsenArsen 2014-09-13 14:06:26