You are here: Re: Detect the users operating system using PHP « PHP Programming Language « IT news, forums, messages
Re: Detect the users operating system using PHP

Posted by Mladen Gogala on 06/20/06 12:47

On Tue, 20 Jun 2006 03:09:06 -0700, bizt wrote:

> Hi,
>
> Is it possible to detect a users operating system using PHP or is this
> something for Javascript? I ask because I am trying getting some bugs
> with a minor javascript script that is generating bugs when run using
> IE on the Mac. The javascript, although a fancy feature, isnt all that
> important to the page so Im just going to disable it from the server
> for Mac users (sorry guys), at least until I figure out the way it will
> display on the Mac.
>
> I havent yet tested it in non-IE browsers (Firefox, Opera etc) on the
> Mac. Can I also find out what browser software the Mac user is using.
> If it works in other Mac browsers I can simply just disable it for IE
> Mac users.
>
> Cheers
>


There is get_browser() function which will return a hash with different
fields, one of which is "platform". More details can be seen at:

http://us3.php.net/manual/en/function.get-browser.php

I can only imagine what the "stripper" field does.


--
http://www.mgogala.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация