Nothadoth Posted July 12, 2006 Share Posted July 12, 2006 For some reason and I dont know why it messes my site up in firefox browsers. So i would like a script to check if the user is using Firefox to warn them. Can this be done?Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/14412-can-someone-do-this-for-me-check-for-browser/ Share on other sites More sharing options...
brown2005 Posted July 12, 2006 Share Posted July 12, 2006 wats the url so i can check Quote Link to comment https://forums.phpfreaks.com/topic/14412-can-someone-do-this-for-me-check-for-browser/#findComment-56959 Share on other sites More sharing options...
avo Posted July 12, 2006 Share Posted July 12, 2006 hi i would check you html a good plugin for firefox is called IE Tab within firefox you have a new tab in the tool bar click this and switch between ie and firefox very usefull exstension to have for developmentHope this helps Quote Link to comment https://forums.phpfreaks.com/topic/14412-can-someone-do-this-for-me-check-for-browser/#findComment-56960 Share on other sites More sharing options...
kenrbnsn Posted July 12, 2006 Share Posted July 12, 2006 Please post a URL (or code) so we can see what you mean. You should be able to make a site appear almost identical between IE & FF. This can be tricky if you use CSS, but it can be done.Ken Quote Link to comment https://forums.phpfreaks.com/topic/14412-can-someone-do-this-for-me-check-for-browser/#findComment-56963 Share on other sites More sharing options...
ShogunWarrior Posted July 12, 2006 Share Posted July 12, 2006 This should work nicely:[code]<?phpif(preg_match('/firefox/i',((isset($_SERVER['HTTP_USER_AGENT']))?($_SERVER['HTTP_USER_AGENT']):('')))){ //Firefox only code}[/code] Quote Link to comment https://forums.phpfreaks.com/topic/14412-can-someone-do-this-for-me-check-for-browser/#findComment-57001 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.