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. 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 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 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 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] 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
Archived
This topic is now archived and is closed to further replies.