forked from swooningfish/getBrowserOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
27 lines (21 loc) · 791 Bytes
/
Copy pathindex.php
File metadata and controls
27 lines (21 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
##################################################
# #
# getBrowserOS.php by Joe Mottershaw #
# Cloud Eight - http://www.cloud-eight.com #
# #
##################################################
// Include getBrowserOS
include('getBrowserOS.php');
// Assign values to variables
$operatingSystem = getOS();
$browser = getBrowser();
// Output
echo '<strong>Operating System: </strong>'.$operatingSystem.'<br />',
'<strong>Browser: </strong>'.$browser;
/*
Example:
Operating System: Windows 8
Browser: Internet Explorer
*/
?>