Title: Correct use &amp; syntax
Last modified: August 21, 2016

---

# Correct use & syntax

 *  Resolved [Jakamarra](https://wordpress.org/support/users/jakamarra/)
 * (@jakamarra)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/correct-use-syntax/)
 * 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…
 * [http://wordpress.org/extend/plugins/php-browser-detection/](http://wordpress.org/extend/plugins/php-browser-detection/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/correct-use-syntax/#post-3901246)
 * 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](http://codex.wordpress.org/Function_Reference/wp_redirect)

Viewing 1 replies (of 1 total)

The topic ‘Correct use & syntax’ is closed to new replies.

 * ![](https://ps.w.org/php-browser-detection/assets/icon-256x256.png?rev=999338)
 * [PHP Browser Detection](https://wordpress.org/plugins/php-browser-detection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-browser-detection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-browser-detection/)
 * [Active Topics](https://wordpress.org/support/plugin/php-browser-detection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-browser-detection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-browser-detection/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/correct-use-syntax/#post-3901246)
 * Status: resolved