Posted by J.O. Aho on 09/21/06 14:01
The Eclectic Electric wrote:
> Is it possible to interrogate the HTTP accept header for specific items?
> What I'm looking to do is to see whether the browser will accept gifs for
> the favicon as per standard and serve either an animated gif or a normal ico
> as appropriate.
You can use $_SERVER['HTTP_USER_AGENT'] to see what web browser the user is
using, and from that compare to a list that you have to see which type of icon
is supported and deliver the type of favicon to them.
//Aho
Navigation:
[Reply to this message]
|