Gayner Posted August 5, 2009 Share Posted August 5, 2009 I tryed.. And searched the internet and came up with no results.. So like I need a php if function that if a USER IS USING IE, eCHO "BLA BLA" ELSE ECHO "bla bla"; thank u! Quote Link to comment https://forums.phpfreaks.com/topic/168918-if-function-to-display-and-echo-anything-if-the-user-is-using-internet-exploror/ Share on other sites More sharing options...
RichardRotterdam Posted August 5, 2009 Share Posted August 5, 2009 You could use get_browser.Do be aware that you can fake your user agent Quote Link to comment https://forums.phpfreaks.com/topic/168918-if-function-to-display-and-echo-anything-if-the-user-is-using-internet-exploror/#findComment-891190 Share on other sites More sharing options...
Gayner Posted August 5, 2009 Author Share Posted August 5, 2009 if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) $nigger = "im using IE"; else $nigger = "Im using Good browser! Good boy!"; will this work fine ? im using this 1.. Quote Link to comment https://forums.phpfreaks.com/topic/168918-if-function-to-display-and-echo-anything-if-the-user-is-using-internet-exploror/#findComment-891193 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.