Answers for "finding the name of the local host in php"

PHP
1

php get hostname

<?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
?>
Posted by: Guest on April-14-2021

Code answers related to "finding the name of the local host in php"

Browse Popular Code Answers by Language