If/Then Browser Detection

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
psykahtik
Forum Newbie
Posts: 4
Joined: Fri Mar 04, 2011 1:47 pm

If/Then Browser Detection

Post by psykahtik »

I have done some searching and digging, but it seems everyone has their own ways of doing things, some more effective than others.

I have a web design portfolio website, which uses a "coinslider" flash slideshow. It looks awesome in FF, but IE6/etc users cant view it properly.

How can I create a PHP if/then to detect if they are using a sub-par browser, and display a more simple slideshow?

That way it will work for all users, and those with Firefox and similar browsers can view the more interesting slideshow.

Thanks.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: If/Then Browser Detection

Post by pickle »

I'm pretty sure Flash is Flash. There should be no reason why a Flash object would show fine in one browser, but not another.

However, it is entirely possible the HTML code you're using to embed the Flash object is not completely cross-browser compatible.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
psykahtik
Forum Newbie
Posts: 4
Joined: Fri Mar 04, 2011 1:47 pm

Re: If/Then Browser Detection

Post by psykahtik »

It shows up a alot slower and distorted in IE6
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: If/Then Browser Detection

Post by pickle »

Oh, so it does show up. Are you testing FF & IE6 on the same computer? I'm not a big Flash guru, but I do find it interesting that the performance of a Flash object differs that much between browsers.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply