Welcome aboard! We are happy you are here and wish you good net-raft!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<?php
if (stripos(PHP_OS, 'win') === 0) {
echo "windows";
} elseif (stripos(PHP_OS, 'darwin') === 0) {
echo "OS X";
} elseif (stripos(PHP_OS, 'linux') === 0) {
echo "linux";
}
?>
</body>
</html>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408