Hi, I'd like to display google adsense firefox referrals only to non-firefox users. Firefox users will see regular google text ads or something else. Help...
if(strpos($_SERVER["HTTP_USER_AGENT"],"Firefox")) { //firefox user //show adsense } else { //non-firefox user //show firefox referral } PHP:
Here's an alternative solution which I use. My site will only display Picassa referals to Firefox users, and both to IE users. I also like to display 1 of many random referal buttons to mix colours, text and language (not shown): if (strpos($_SERVER['HTTP_USER_AGENT'], "MSIE")) { // show Firefox referral button } else { // show something else } PHP: Cryo.
this is better coz it wont show the refferals in firefox the other one will only show in ie so other browsers like opera n all will show normal ads