note 128551 added to function.gethostname
| From: | php at pk1048 dot com | Date: | Thu, 18 May 2023 15:01:09 +0000 |
| Subject: | note 128551 added to function.gethostname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220505@lists.php.net to get a copy of this message | ||
Regarding Linux vs. macOS, that is not a difference in OS or PHP. macOS sets the hostname to
<shortname>.local. Open a terminal window and run
hostname to check. The local
hostname can be set on macOS under the Sharing Preferences (or Settings if Ventura 13 or newer).
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 108.176.107.34)
----
Manual Page -- https://php.net/manual/en/function.gethostname.php
Edit -- https://main.php.net/note/edit/128551
Del: integrated -- https://main.php.net/note/delete/128551/integrated
Del: useless -- https://main.php.net/note/delete/128551/useless
Del: bad code -- https://main.php.net/note/delete/128551/bad+code
Del: spam -- https://main.php.net/note/delete/128551/spam
Del: non-english -- https://main.php.net/note/delete/128551/non-english
Del: in docs -- https://main.php.net/note/delete/128551/in+docs
Del: other reasons-- https://main.php.net/note/delete/128551
Reject -- https://main.php.net/note/reject/128551
Search -- https://main.php.net/manage/user-notes.php