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
Post a Comment