1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley
Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

PHP Knows You're On A Mac

Monday July 31, 2006
When I go to some software sites I am taken directly to the page for Macintosh software, while my friend visiting the same page is taken to the Windows software. How did the website know that I'm on a Mac? Well one simple way that a PHP site can gather this information is by using ['HTTP_USER_AGENT']. Once it has this information, it can sort users accordingly.
Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.