php - fatal error: call to undefined function redirect() -


I am using mobile users to redirect to a specific page. But, when I am writing this then I am getting serious error for redirect () will someone tell me where else I am missing?

  need_once 'Mobile_Detect.php'; $ Address = New Mobile_Detect; $ DeviceType = ($ detect-> hasmobile ()? ($ Detect-> IsTablet ()? 'Tablet': 'Phone'): 'Computer'); $ Script warsian = $ address- & gt; GetScriptVersion (); If ($ detect- & gt; isMobile ()) redirect ('iammobile.php'); Else echo & lt; H1 & gt; I'm desktop & lt; / H1> ';    

header

  Header ("Location: iammobile.php"); Die ();    

Comments

Popular posts from this blog

Android - Facebook GraphUser has no email attribute -

deployment - How to upload Parent child SSIS package to server -

Opencart and VQMOD issue: Could not load controller in vq2-system_engine_controller.php -