Danny696 Posted December 19, 2009 Posted December 19, 2009 I need a php script to dectect the users OS for a log user im making, ive tried various scripts from the interweb, none worked. Quote
Dave Posted December 19, 2009 Posted December 19, 2009 http://www.geekpedia.com/code47_Detect-operating-system-from-user-agent-string.html I've used this script before and it worked very well :) Quote
Zero-Affect Posted December 19, 2009 Posted December 19, 2009 download the FREE SMF lol investigate the code implied or use google. Quote
Karlos94 Posted December 19, 2009 Posted December 19, 2009 Or simply investigate CodeIgniter... It should help quite alot. Quote
Jordan Palmer Posted December 20, 2009 Posted December 20, 2009 I've made this before isn't too hard, If you still need it hit me up on msn, I'll edit mine to work for you.. Quote
Danny696 Posted December 23, 2009 Author Posted December 23, 2009 thanks, but looking at my log code, i just realised, i put $log['OD'] not $log['OS'] Thanks everyone. Quote
CrazyT Posted December 23, 2009 Posted December 23, 2009 lmaoo... Should of checked database. -.- Quote
Will Posted December 30, 2009 Posted December 30, 2009 Just use the phpget_browser() function. You'll need to add the browscap file to your php.ini file though: Browscap file: http://browsers.garykeith.com/downloads.asp and in the php.ini file: browscap=browscap.ini Change the file name to the one your download. Quote
Zero-Affect Posted December 30, 2009 Posted December 30, 2009 i just had a glance but that would be something like $browser = get_browser(null, true); echo $browser['platform']; Not so difficult eh... lol Quote
Will Posted December 30, 2009 Posted December 30, 2009 You have to be able to change the php.ini file Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.