php or java scipt needed and i carnt find the one I need..

General AVIATION RELATED chatter

Moderator: FSAirlines Staff

Post Reply
whare

php or java scipt needed and i carnt find the one I need..

Post by whare » Fri Jul 28, 2006 10:16 pm

Hi All

right here is what i need a script that will detect the users browser and tell the if they are not using internet explorer that for best results that they should on the site this is coz my new site has been made to look right in IE if you view in modzilla it dont look as good

so any ideas from anyone?

User avatar
joefremont
FSAirlines Developer
Posts: 3695
Joined: Tue May 16, 2006 5:46 am
Location: KSFO

Post by joefremont » Sat Jul 29, 2006 12:01 am

Inside your PHP code you can look at the $_SERVER["HTTP_USER_AGENT"] global.

There is one place in my code where I am testing if the user is using internet explorer and I use the statement:

if (strstr($_SERVER['HTTP_USER_AGENT'], "MSIE"))
Image
I've sworn an oath of solitude until the pestilence is purged from the lands.

whare

Post by whare » Sat Jul 29, 2006 4:28 pm

Im after a complete code (my php is not that good lol)

But thanx for the help

tall_guy_pete

Post by tall_guy_pete » Sat Jul 29, 2006 11:52 pm

Search google mate ... you find loads of answers as long as you use the correct criteria. Also highly recomend dynamicdrive.com :D

whare

Post by whare » Sun Jul 30, 2006 9:22 am

Well i had a look on hotscripts but come up a blank on trying to get a script that does what I need failing finding one i will have to find all the diferent components tocreate one that will do what I need (Like I dont have enought to do lol)

Post Reply