Support » Plugin: W3 Total Cache » Problem with php HTTP_USER_AGENT

  • Hello! I’m hoping I have a simple problem here. I’m hiding a few things from mobile phones by wrapping the html in: <?php if(!preg_match('/(symbian|smartphone|phone|android)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) : ?> and it works great, but when I install this awesome plugin, the code no longer works, and the items are downloaded and shown on mobile phones. Does anyone have any ideas on how I can fix this? Thanks!

  • The topic ‘Problem with php HTTP_USER_AGENT’ is closed to new replies.