Answers for "gethostname 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
0

php gethostname

<?php
  echo gethostname(); 
?>
Posted by: Guest on February-24-2022

Browse Popular Code Answers by Language