PHP News   Codeschnipsel   PHP-Scripts   Impressum   Datenschutz


Codeschnipsel

Systemabfrage
Welches System benutzen deine User? Mit diesem Codeschnipsel bekommst du es heraus!
Hier gibt es eine Vorschau: Demo

Autor: Fabian Karg E-Mailadresse des Autors Gästebuch: kostenlos und werbefrei
<?php
if (strstr($HTTP_USER_AGENT"Windows 95")) {
$system "Win95";
} else if (
strstr($HTTP_USER_AGENT"Windows 98")) {
$system "Win98";
} else if (
strstr($HTTP_USER_AGENT"NT 4.0")) {
$system "NT";
} else if (
strstr($HTTP_USER_AGENT"NT 5.0")) {
$system "Win2k";
} else if (
strstr($HTTP_USER_AGENT"NT 5.1")) {
$system "WinXP";
} else if (
strstr($HTTP_USER_AGENT"Win")) {
$system "Win";
} else if (
strstr($HTTP_USER_AGENT"Mac")) {
$system "Mac";
} else if (
strstr($HTTP_USER_AGENT"Linux")) {
$system "Linux";
} else if (
strstr($HTTP_USER_AGENT"Unix")) {
 = 
"Unix";
} else {
$system "Other";
}
echo 
$system;
?>



Tipps:


Copyright © 2008 phpfriends.net. Alle Rechte vorbehalten.

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/counter.php on line 37

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 64

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 66

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 69

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 71

Deprecated: Assigning the return value of new by reference is deprecated in /www/htdocs/phpfrien/Counter/include/functions_counter.inc.php on line 703