Skip to content

Instantly share code, notes, and snippets.

@ccheney
Created November 15, 2012 06:29
Show Gist options
  • Save ccheney/4076997 to your computer and use it in GitHub Desktop.
Save ccheney/4076997 to your computer and use it in GitHub Desktop.
PHP: detect IE
// detects ie and serves an ie specific page
if (isset($_SERVER['HTTP_USER_AGENT']) &&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) {
include "ie/index.html";
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment