RE: [PHP] catch the client OS user logon from php script

From: Date: Wed, 19 Jun 2002 09:29:25 +0000
Subject: RE: [PHP] catch the client OS user logon from php script
Groups: php.general 
Request: Send a blank email to php-general+get-102902@lists.php.net to get a copy of this message
does... $_SERVER["HTTP_UA_OS"] exist? I can't see that ne where and when I try to use it t's blank... Also... I was using that as an example to put him on the right track... afterall nuthing is learnt if your given it on a plate... if you want the exact OS, you need to extract it from $user_agent = $_SERVER["HTTP_USER_AGENT"]; Here is a snippet to do so. $user_os = ltrim(substr($user_agent, strrpos($user_agent, ";")+1, strrpos($user_agent, ")")-(strrpos($user_agent, ";")+1))); > -----Original Message----- > From: Clay Loveless [mailto:clay@killersoft.com] > Sent: 19 June 2002 10:13 AM > To: PHP-General > Subject: Re: [PHP] catch the client OS user logon from php script > > > Edy, > > If you're referring to the OS a visitor to your site is using > (not the OS > your PHP is running on, which you probably know), you'd want: > > $_SERVER["HTTP_UA_OS"] > > -Clay > > > > From: "Brian McGarvie" <bmcgarvie@lennox-mckinlay.co.uk> > > Date: Wed, 19 Jun 2002 09:54:39 +0100 > > To: èdy kurniawan <edy.kurniawan@astra-honda.com>, > <php-general@lists.php..net> > > Subject: RE: [PHP] catch the client OS user logon from php script > > > > $_ENV["OS"] > > > > (see MANUAL for more that you can capture!) > > > >> -----Original Message----- > >> From: èdy kurniawan [mailto:edy.kurniawan@astra-honda.com] > >> Sent: 19 June 2002 9:44 AM > >> To: php-general@lists.php.net > >> Subject: [PHP] catch the client OS user logon from php script > >> > >> > >> Dear PHP-ers, > >> > >> How can I capture my client OS user logon via PHP script ? > >> > >> TIA, > >> edyk > >> > >> > >> -- > >> PHP General Mailing List (http://www.php.net/) > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#102902) next »