WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Jakamarra
    Member
    Posted 1 year 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…

    http://wordpress.org/extend/plugins/php-browser-detection/

  2. Mindshare Studios, Inc.
    Member
    Plugin Author

    Posted 10 months 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

About this Topic

Tags

No tags yet.