PHP Browser Detection
[resolved] Correct use & syntax (2 posts)

  1. Jakamarra
    Posted 3 years ago #

    I don't know if I've got this right I've been reading through the installation docs over and over again.

    Am I correct to say that I put this code to detect a browser into one of my pages. So for example if I am running Firefox would this code redirect Firefox to Google?
    <?php if(is_firefox($version)) { /http://google.com// }; ?>

    I have a page that contains content that is not compatible with IE so I want to show IE users an alternative page.

    I have tried to put this code into one of my pages to test it but nothing happened.

    Thanks, Robert…


  2. Mindshare Labs, Inc.
    Plugin Author

    Posted 2 years ago #

    No that code won't work.. it's not valid PHP. You should try taking some PHP tutorials online... teaching PHP is beyond the scope of supporting this plugin.

    To point you in the right direction take a look at: http://codex.wordpress.org/Function_Reference/wp_redirect

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHP Browser Detection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.