PHP $_Server Host Name etc. command line equivalent

http://php.net/manual/en/function.php-uname.php

string php_uname ([ string $mode = “a” ] )
mode is a single character that defines what information is returned:

  • ‘a’: This is the default. Contains all modes in the sequence “s n r v m”.
  • ‘s’: Operating system name. eg. FreeBSD.
  • ‘n’: Host name. eg. localhost.example.com.
  • ‘r’: Release name. eg. 5.1.2-RELEASE.
  • ‘v’: Version information. Varies a lot between operating systems.
  • ‘m’: Machine type. eg. i386.

Leave a Reply

You must be logged in to post a comment.