Skip to content

Instantly share code, notes, and snippets.

@stovak
Created December 12, 2012 00:56
Show Gist options
  • Save stovak/4263884 to your computer and use it in GitHub Desktop.
Save stovak/4263884 to your computer and use it in GitHub Desktop.
<?php
echo php_uname('s');/* Operating system name */
echo "<br />";
echo php_uname('n');/* Host name */
echo "<br />";
echo php_uname('r');/* Release name */
echo "<br />";
echo php_uname('v');/* Version information */
echo "<br />";
echo php_uname('m');/* Machine type */
echo "<br />";
echo PHP_OS;/* constant will contain the operating system PHP was built on */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment