Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
finding sombodys Operating System with php |
Page: 1 | Reply |
Sep 4th 2002 | #67679 Report |
Member since: Sep 3rd 2002 Posts: 22 |
hi, I am sorting out a logging system and i was wondering how you would find out sombodys operating system in php? I no how to find there ip and i have seen it where it shows the OS. If anybody no's , thanks in advance |
Reply with Quote Reply |
Sep 4th 2002 | #67756 Report |
Member since: Apr 1st 2002 Posts: 1487 |
im still a n00b with PHP, but i'm not sure this is possible without writing out a big script. i think you might be better off using javascript for this.
|
Reply with Quote Reply |
Sep 6th 2002 | #67978 Report |
Member since: Apr 12th 2001 Posts: 27 |
You can find it in the global variable $HTTP_USER_AGENT. This is snippet from a bigger script that id's w32-platforms: [code] /* Id windows32bit platform*/ $Browser_Platform = "unknown"; if(ereg( "Windows 95",$HTTP_USER_AGENT) || ereg( "Windows 98",$HTTP_USER_AGENT) || ereg( "Windows NT",$HTTP_USER_AGENT) || ereg( "WinNT",$HTTP_USER_AGENT) || ereg( "Win95",$HTTP_USER_AGENT) || ereg( "Win98",$HTTP_USER_AGENT)) { $Browser_Platform = "win32"; } [/code] |
Reply with Quote Reply |
Page: 1 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |