RE: [PHP-DB] Detect OS

From: Date: Wed, 16 May 2001 17:03:41 +0000
Subject: RE: [PHP-DB] Detect OS
Groups: php.db 
Request: Send a blank email to php-db+get-9363@lists.php.net to get a copy of this message
This advice is incorrect I believe. PHP_OS will return the OS PHP is running on, not what the OS of the client. From the manual: PHP_OS The name of the operating system on which the PHP parser is executing; e.g. 'Linux'. $HTTP_USER_AGENT (if you're using Apache with PHP) should do what you need. Josh Hoover KnowledgeStorm, Inc. jhoover@knowledgestorm.com Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify the process for you. KnowledgeStorm - Your IT Search Starts Here > > How can I detect client's OS/platform with PHP? (Win, Mac, etc.) > > with PHP_OS. $os = PHP_OS; > > See "Chapter 8 - Constants" of the manual.

« previous php.db (#9363) next »