Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<?php

	$ip = shell_exec("hostname -I");
	echo "local IP address={$ip}\n";

?>

Above sample is tested on CentOS 7.