title: fatal error: call to undefined function redirect()
body: <p>I am using <a href="http://mobiledetect.net/" rel="nofollow" title="mobiledetect">mobiledetect</a> for redirect mobile users to a specific page. But, when I'm writing this then I am getting the Fatal error for <code>redirect()</code>. Can anyone please let me know where and what I'm missing?</p>
  
  <pre><code>require_once 'Mobile_Detect.php';
  $detect = new Mobile_Detect;
  $deviceType = ($detect-&gt;isMobile() ? ($detect-&gt;isTablet() ? 'tablet' : 'phone') : 'computer');
  $scriptVersion = $detect-&gt;getScriptVersion();
  
  if ($detect-&gt;isMobile())
     redirect('iammobile.php');
  else
     echo '&lt;h1&gt;I am Desktop&lt;/h1&gt;';
  </code></pre>