View Single Post
Old Apr 24th, 2006, 5:00 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The browser is not required to send you that information. Think of it like this: you could read the RFCs and write some code to ask for a resource from some server. This would be 'your' browser. You might or might not write it to conform to 'tradition' or 'common practice.' Always bear this in mind when you are trying to wring functionality from two separate pieces of code, one residing on some client's machine, and one residing on your server, and the two authors never heard of each other and don't give a rat's ass what the other might want, outside of compliance with the RFCs. Should you happen to luck out and find a non-standard facility on one end that does what you want, you still have no guarantees about the other end. All that said, look up get_browser and HTTP_USER_AGENT in your PHP docs. If you're looking for universal miracles, though, you might should oughtta buy a chicken and get prepared to wring its neck and offer it up.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote