W3 Total Cache
Problem with php HTTP_USER_AGENT (1 post)

  1. Preeminent
    Posted 3 years ago #

    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!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic