php get hostname 1

php get hostname


Here is what the above code is Doing:
1. The gethostname() function returns the hostname of the current machine.
2. The php_uname() function returns information about the operating system PHP is running on.
3. The ‘n’ parameter of the php_uname() function returns the hostname of the machine.

Similar Posts