[thelist] PHP multiple style switcher

Jeffrey Barke jeffrey.barke at themechanism.com
Fri Nov 23 13:29:54 CST 2007


There is no reason to serve different styles to different browsers  
based on the user agent. Why are you trying to do this? Did you not  
see my response regarding IE conditional comments?

You wrote:
 > I understand, but what are the drawbacks for using it anyways?

The user agent cannot be trusted. Opera and Firefox can easily be set  
to send different user agents. I do it all the time when testing  
things. You can even set Firefox to tell the browser it's iPhone.


Jeffrey Barke
jeffrey.barke at theMechanism.com
Lead Developer, US
theMechanism - New York City
440 9th Avenue, 8th Floor
New York, NY 10001-1631
t: +1 212.404.3150
c: +1 917.941.1232
f: +1 212.404.3228


Subscribe to theMechcast, our monthly Podcast:

theMechanism - London
3rd Floor
405 The Strand
London E14 9FW
United Kingdom
t: +44 (0)20 7240 4964
f: +44 (0)20 7240 2262

The information contained in this Electronic mail message is attorney  
privileged and confidential information intended only for the use of  
the individual or entity named above. Such information also is  
intended to be privileged, confidential, and exempt from disclosure  
under applicable law. If the reader of this message is not the  
intended recipient or the employee or agent responsible to deliver it  
to the intended recipient, you are hereby notified that any  
dissemination, distribution, or copying of this communication is  
strictly prohibited. If you have received this communication in  
error, please notify us immediately by telephone.

Blah, blah, blah...

On Nov 23, 2007, at 2:09 PM, DAVOUD TOHIDY wrote:

> On Date: Fri, 23 Nov 2007 13:29:45 -0500 rjmolesa wrote:
>> I don't have it infront of me but there was a class on source  
>> forge...
> that is a good one thanks. It will need some work to make it capable
> of providing different styles for the same browser.
> regards,
> davoud
> _________________________________________________________________
> R U Ready for Windows Live Messenger Beta 8.5? Try it today!
> http://entertainment.sympatico.msn.ca/WindowsLiveMessenger
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !

More information about the thelist mailing list